View Single Post
Old 04-20-2019, 06:29 PM   #6
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by BetterRed View Post
Not sure what you mean by "portabilize", the OS/File system (Windows/NTFS, MacOS/HFS+ or Linux/ExtN) does the work of resolving symlinks it to physical locations. If the symlink is 'in' the calibre portable directory, that's all calibre knows, when it opens the folder symlink it sees a metadata.db, which is all it cares about.
What I meant was calibre-portable.exe knows how to resolve library paths inside the "\Calibre Portable\" top level directory in case the folder is moved or the drive letter changes.

For example you have:
Quote:
Q:
|
+-- File: StartCalibre.bat
|
+-- Directory: Calibre Portable
| |
| +-- File Calibre-portable.exe
| +-- Directory Calibre Settings
| +-- Directory Calibre
| +-- Directory Calibre Library
| +-- SymLink: My Main Calibre Library
| +-- SymLinks: Other Libraries
|
+-- Directory: My Main Calibre Library
|
+-- Directory: Other Libraries
and it changes to:
Quote:
X:
|
+-- File: StartCalibre.bat
|
+-- Directory: Calibre Portable
| |
| +-- File Calibre-portable.exe
| +-- Directory Calibre Settings
| +-- Directory Calibre
| +-- Directory Calibre Library
| +-- SymLink: My Main Calibre Library
| +-- SymLinks: Other Libraries
|
+-- Directory: My Main Calibre Library
|
+-- Directory: Other Libraries
calibre-portable.exe would realize that "Q:\Calibre Portable\My Main Calibre Library" has moved to "X:\Calibre Portable\My Main Calibre Library". Meanwhile, it would be unable to find "X:\My Main Calibre Library" directly.
ilovejedd is offline   Reply With Quote