View Single Post
Old 12-04-2019, 08:39 AM   #1
michelD09
Junior Member
michelD09 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2019
Device: android tablet
Question Directory structure and hardlinks

Hello,
sorry for getting back to the discussions (I read) about folder structure but I'd like to know if the following process could be admissible (on a linux system) :
- I have all my original e-books in one folder, say ~/orig
- I hardlink all theses files in another folder, say ~/dest
- I ask Calibre to watch dest and copy files to its folder (~/Calibre Library), deleting files in ~/dest when they are copied

This way i can kepp ~/orig untouched (for use on another purposes : I need to access ~/orig - which is a "flat" folder, without subfolders - with dired in emacs without having to traverse subfolders structure built by Calibre) and hard links do not occupy much room.

One question is : when Calibre copy the file, does it copy the link (in witch case this doesn't increase room) or does it "re-link" the file to another inode ?

Thanks a lot for your help.
Michel
michelD09 is offline   Reply With Quote