![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2011
Device: Sony PRS-650
|
[Old Thread] Limitation of length of path to Calibre Library
I have been using Calibre for a considerable time, and am delighted with it.
The path to my Calibre library is long, of necessity, related to security, access & back-up procedures. Today, after no problems previously, I received a message on loading Calibre (Version: 0.8.9) on my laptop (Win XPP SP3 patched to date), that my Calibre library could not be opened as the path to it was too long. Nothing seems to have changed, and Calibre still works well on my desktop, (Win7 64 bit - SP 1 patched to date) where the path to the library is identical. I think this is really a request to the development team to increase the length of the permitted path to the library to the maximum likely to be used - maybe 240 characters ? Many thanks Nigel |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,288
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The path length is limited to 75 characters. If it were made longer then the path to individual book files would become too long for windows. If you need to use a long path, then map a drive to the long path, and use that in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,564
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
For a local drive you might have to use SUBST at the command prompt; not sure you can map a drive to a local directory.
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 72130
Join Date: Nov 2008
Location: San Francisco Bay Area, CA, USA
Device: Sony PRS-505, Kindle DX 1st Gen, Kindle Fire 1st Gen
|
Quote:
I successfully used this method last year when I was writing scripts to clean up files on a file server at work. It works fine in Python. I think calibre can fix this limitation: Code:
import os p = "\\\\?\\" + os.getcwdu() for i in range(10): p = os.path.join(p, 'x' * 100) os.mkdir(p) os.stat(p) print len(p) Last edited by Halo; 07-15-2011 at 12:29 PM. |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,288
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
windows supports it, windows explorer doesn't, which means the files become inaccessible via windows explorer.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
Wow. I am always learning something new here, this is great! I can use this, since I already know my path is currently longer than the 75 minimum (but haven't upgraded past 8.6 yet).
|
![]() |
![]() |
![]() |
#7 | |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
Quote:
I tried this and it worked. End of the day I shut down the computer and now when I turned it back on, that drive is no longer showing. Do I have to map it to a drive every time I reboot? |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Which method did you use to map the drive? In both the windows level drive mapping and the SUBST command option there is an option to make it persistent.
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,564
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
From the command line (not sure where it is in the GUI's) you can type Code:
NET USE /PERSISTENT:YES |
|
![]() |
![]() |
![]() |
#10 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 72130
Join Date: Nov 2008
Location: San Francisco Bay Area, CA, USA
Device: Sony PRS-505, Kindle DX 1st Gen, Kindle Fire 1st Gen
|
Quote:
Last edited by Halo; 07-19-2011 at 11:13 PM. |
|
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,303
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Note:
Net Use is only valid if there is a Network connection UP and running (Link established) at the time it is issued. |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,564
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#13 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2011
Device: Kobo Touch
|
Quote:
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\DOS Devices] "X:"="\\??\\D:\\My\Very\Long\And\Complicated\Path\ To\My Data" Note the double backslashes after the drive letter where your path exists, the normal single backslash won't work. BTW, the forum software keeps inserting a space in "Contro l" in spite of my best efforts, obviously it should be "Control" without a space. ![]() |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,912
Karma: 7076769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#15 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
Thanks to everyone who answered...I'm thinking of going with chaley's suggestion (I think it was made a little higher up by another poster as well). I don't want to mess with the registry, but I already know my path is too long and I've been holding off upgrading Calibre because of it. I need a simple method that I'll remember to transfer to my notebook (which serves as a backup for me) as well.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column showing path length? | xterminal | Library Management | 1 | 09-11-2012 09:12 AM |
Sort library by length of title (or author, etc) ? | Rob557 | Library Management | 21 | 08-20-2012 04:59 AM |
Change path to Calibre library | davidm_uk | Library Management | 3 | 02-07-2012 06:14 AM |
Path to library too long. Must be less than 75 characters. | FizzyWater | Library Management | 6 | 07-02-2011 07:59 PM |
Change library path? | Slite | Calibre | 2 | 09-30-2008 10:52 AM |