| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Custom folder structure on 'save to disk'
			 
			
			
			Hi  
		
	
		
		
		
		
		
		
		
		
		
		
		
			![]() I'm using Calibre 0.9.7 since two or three days. Calibre use the authors and the book title for the folder structure. Is there a way to tell Calibre to use a custom metadata field as structure? I've added #genre and I would prefer this. greez GarfieldKlon Last edited by GarfieldKlon; 11-25-2012 at 11:43 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I've already read this and I'm configuring the 'save to disk'. I set genre like this --> 'IT.Programming.Java'. If I export it with {#genre}/{title}/{title} I'm ending up with a folder calld 'IT.Programming.Java' ... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	But I want a single folder for each genre, a folder 'IT', and in there a folder 'Programming' and so on. Isn't this possible?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 You will really farkle your library if you write into it.  | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I don't want to write into the calibre folder structure, I just want to export my books somewhere else with my own defined logic. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			I think this could be the solution: sublist(val, start_index, end_index, separator) edit: Ok here's something ugly, but it works: {#genre:subitems(0,1)}/{#genre:subitems(1,2)}/{#genre:subitems(2,3)}/{#genre:subitems(3,4)}/{#genre:subitems(4,5)}/{title}/{title} I don't know how to dynamically create the folder structure. Last edited by GarfieldKlon; 11-25-2012 at 11:41 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 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: 
	
   (from the base folder) structure there.ALL Folders (paths) will be created as needed  | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Exactly, what's so scary about that? Can I do this more generically?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 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 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Long path names aren't the same as a deep directory structure. The directories itselves are each shorter than 20 characters.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	{#genre:re(\.,/)}
 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 7 
				Karma: 10 
				Join Date: Nov 2012 
				
				
				
				Device: iPad 4th 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@Chaley 
		
	
		
		
		
		
		
		
		
		
		
		
	
	THX! It works great. Could you please explain it to me what re does? Or give me a link, I haven't found it in the help, just examples with no explanation.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 A good regular expression tutorial is here: All about using regular expressions in calibre.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| 2 authors and the folder structure | brainvision | Library Management | 6 | 08-10-2012 09:42 AM | 
| Folder Structure on Device | laos369 | Sony Reader Dev Corner | 6 | 05-26-2012 12:23 AM | 
| Folder structure an the reader | thomasmorus | Calibre | 2 | 05-23-2010 08:51 PM | 
| Folder structure doubt | Oletros | iRex | 3 | 01-01-2009 08:00 AM | 
| SD Folder structure | ctitanic | Amazon Kindle | 1 | 12-30-2007 01:48 PM |