Quote:
Originally Posted by BetterRed
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.