| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: Dec 2017 
				
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Mirror Calibre library path structure to device
			 
			
			
			Regards. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	What would be the exact save to device template that would create identically named sub-directories and file-names on the device as their "original" sub-directories and file-names in Calibre Library? For example... a book from Calibre Library: Code: 
	<Calibre Library Path>\Albert Camus\The Stranger (28)\The Stranger - Albert Camus.epub Code: 
	<Device Library Path>\Albert Camus\The Stranger (28)\The Stranger - Albert Camus.epub  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			most is obvious because they are visible fields: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	 ({id})
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: Dec 2017 
				
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, I also got to this... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	{author}/{title} ({id})/{title} - {author}
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 And Kovid has been known to change the algorithm calibre uses to determine library folder and file names. BR  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: Dec 2017 
				
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank you guys... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	If I've understood your input correctly - folder and file names in Calibre library are (more or less) non-deterministic and there is no elegant way of having exactly the same folder/file structure on your device? What about some advanced use of formats_paths() and select() functions? I am not that "proficient" in Calibre's template language but I suspect some winded clauses of similar functions could potentially solve my problem.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@FauDrei - why do you want to do this?   
		
	
		
		
		
		
		
		
		
		
		
		
	
	The names of sub-folders and files in a calibre library are arbitrary, they could have been created from row ids in the sqlite authors and books tables. If you really need the same structure on your devices you could try to find a file sync tool that runs on your computer and devices- have a look in Comparison of file synchronization software - Wikipedia. Since 2008 I've used Goodsync, if I was making the same decision today I would want to consider Resilio. BR  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: Dec 2017 
				
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi BR, thanks for your suggestions. Having GLO HD e-reader structures in sync with my "main" Calibre PC was my goal. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	For 20+ years I have been using Total Commander for synchronising folders and files (as well as for many other PC related tasks), but I wanted to spare myself a step or two at each e-book transfer from Calibre to my Glo HD. After all I've read/learned in past few days - I am not so sure this goal would be easy to maintain. Thanks anyway.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,686 
				Karma: 12595249 
				Join Date: Jun 2009 
				Location: Madrid, Spain 
				
				
				Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
    Including (ID) is a bad idea.  Did that   a long time ago.The first time you use 2 Libraries (anyone's) , those numbers become meaningless. There are also other functions that Calibre will change that assignment. Calibre companion will sync content and metadata (when using Wireless device connection) . Available for Android and IOS  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Long way of saying that there are times when {id} or perhaps {uuid} is needed.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			[QUOTE=chaley;3628912 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Long way of saying that there are times when {id} or perhaps {uuid} is needed.[/QUOTE] Now uuid make sense. It should not change, right?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The key issue is that calibre is not a file system centric application, it's a database centric application. The author and book sub-folders exist for efficiency reasons; they avoid having to use blobs for format files, they provide storage for readily displayable cover images, and a place to store database recovery data. As an experiment try this: 
 BR  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				Join Date: Jul 2011 
				Location: Sydney, Australia 
				
				
				Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 For example, calibre doesn't automatically update the metadata in the books. This is stored in a database and only when the book is sent outside calibre (plus some other actions) is the metadata updated. If you sync the file structure, the books on the device are unlikely to have the latest metadata. Another thing is the device. I link the think the calibre support for the Kobo devices is very good. The driver can create collections, set the series information, tweak some styles, generate the cover images and some other things when you send the book. Plus, it has an important cheat. The default behaviour of the Kobo device if a book is replaced is to remove it from the internal database and process it as a new book. This means you lose the collections and reading status. The driver fiddles with the database a bit to prevent this from happening. This isn't perfect, but I find it much more useful than the device treating the book as a new book.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Library structure on PC and on Device | mfsav2 | Library Management | 7 | 12-17-2015 10:22 PM | 
| T68 - Calibre and folder structure on the device | Brandobras | Onyx Boox | 6 | 09-02-2014 04:20 AM | 
| Easiest way to mirror/sync library with Android device? | Mivo | Calibre | 6 | 10-02-2013 06:07 AM | 
| Change path to Calibre library | davidm_uk | Library Management | 3 | 02-07-2012 07:14 AM | 
| [old thread] filename and library structure /author and titel structure | tscamera | Library Management | 4 | 05-31-2011 06:44 PM |