|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 832
Karma: 2111023
Join Date: Sep 2013
Device: Kobo Sage
|
Suggestion: Warn if Library on Network/Cloud Drive?
Since one of the recurring problems I see here involves people putting their Calibre library on a network or cloud drive, I'm wondering if it's programmatically possible for Calibre to recognize that a library is on a network/cloud drive and warn the user as they try to set it up?
|
|
|
|
|
|
#2 |
|
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,660
Karma: 8572047
Join Date: Dec 2021
Location: England
Device: none
|
I'm sure it's possible but a lot of effort I imagine to cater for people who don't read the manual. If they did, they would know not to use network/cloud drives for general access.
Surely people don't use a program if they don't know how to? Like driving a car with your eyes shut. *end of soapboxing* |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,834
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Please suggest how this can reliably be detected, because the idea is good, but the how is elusive and gets even harder supporting cross platforms? Remember Calibre puts reliability and cross platform at the top of the list. A Timing test fails because of caching? An API query (are you a networked drive type?) is a maintainers headake with all the variations. |
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,334
Karma: 29630876
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no reliable way to detect that, as far as I know. A pure network drive may still be detectable at least with per platform code but a folder shared via dropbox/onedrive/etc is completely undetectable.
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,719
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The warning is there when the library is created:
Perhaps it should be more prominent, big red font, with a couple of ☢️s. And the FAQ, should refer to Network Storage which ought be defined to include: Cloud storage, NASes, Shared drives, Local servers, etc - i.e. everything except locally attached devices. BR |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86
Karma: 1637304
Join Date: Apr 2024
Device: Kindle 11th Gen
|
Or just change that language to state, "DO NOT install the calibre library on a network drive or cloud drive or syncing app drive."
Don't explain why; just make it scary. |
|
|
|
|
|
#7 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,318
Karma: 247697703
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
It is actually possible to keep your active library safely on a cloud drive (as long as that's not Google Drive) - you just have to stop syncing while calibre is open, keep all the files as locally available (not online-only) and make changes to your library strictly on one device (to avoid two-way syncing of changes). Violate one of these conditions, and you'll corrupt your library. Most folks using cloud drives to host their library violate at least one if not all three, hence the numerous complaints about errors. Also people usually keep their cloud drives constantly running in the background and syncing, so it's easy to forget to pause them.
Listing all that would of course be far too long to keep people's attention and would just be ignored, so it's best not to recommend using cloud drives at all. |
|
|
|
|
|
#8 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86
Karma: 1637304
Join Date: Apr 2024
Device: Kindle 11th Gen
|
That's why I wrote, "Don't explain why."
|
|
|
|
|
|
#9 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,719
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
|
|
#10 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,334
Karma: 29630876
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well I made the warning a bit more prominent: https://github.com/kovidgoyal/calibr...d9989e969c413f
|
|
|
|
|
|
#11 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,095
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Don't know if it helps but I have a VBS sub that checks for drive type
It tags my Google drive (which I map to a letter) as a network drive No idea about OneDrive since I don't use it Code:
'DriveType values:
'Value Drive Type
Const drvUnknown = 0 ' Unknown
Const drvRemoveable = 1 ' Removable (USB flash drive, floppy disk, etc.)
Const drvFixed = 2 ' hard disk, SSD
Const drvNetwork = 3 ' Network drive
Const drvCDROMDVD = 4 ' CD / DVD drive
Const drvRAM = 5 ' RAM disk
Dim fso, drv
Set fso = CreateObject("Scripting.FileSystemObject")
For Each drv In fso.Drives
WScript.Echo drv.DriveLetter & ": Type=" & drv.DriveType
if drv.DriveType = drvNetwork then Wscript.Echo "That's a Network Drive"
Next
|
|
|
|
|
|
#12 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,318
Karma: 247697703
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
But it presumably can't detect a cloud drive folder if it's not mapped. It's just like any other folder on your hard drive. And most people don't map their cloud drives.
|
|
|
|
|
|
#13 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86
Karma: 1637304
Join Date: Apr 2024
Device: Kindle 11th Gen
|
[offtopic]What is this Karma thing? I went from 10 to 1.2e6 in one go.[/offtopic]
|
|
|
|
|
|
#14 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,834
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#15 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,882
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Don't use "syncing app drive" as some will take it as do not use your drive that Overdrive runs on.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving Library to Cloud Drive | bolzak | Library Management | 15 | 02-09-2024 03:36 PM |
| Problems with library located on a network drive | mikolajek | Library Management | 8 | 07-13-2014 09:18 AM |
| 'Sync with Cloud Drive' to add Docs to your library | tomsem | Amazon Fire | 14 | 12-13-2013 02:28 AM |
| Calibre with library on mapped network drive | litiki777 | Related Tools | 1 | 10-30-2012 05:31 AM |
| PRS-500 Bookdesigner suggestion - warn before cleaning | kulaga | Sony Reader Dev Corner | 7 | 07-06-2007 06:04 PM |