| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 72 
				Karma: 10 
				Join Date: Oct 2016 
				
				
				
				Device: iPad Pro 12.9" 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Problems Getting Desired FileName Format
			 
			
			
			I seem to be doing something wrong with my E-book library.  
		
	
		
		
			I want my E-book files (mostly PDFs) to be saved in a format that has the filename identical to the title. What is happening is the files are being saved in my E-book directory/AuthorName/Title(####)/truncated title - author.pdf I'm not sure what the #### - some number with no significance to me which is fine. But the filename in truncatedtitle-author format is problematic. How can I make Calibre rename all my existing Ebooks/pdfs in its library so that the filename matches the title only, and do this for all future Ebooks/pdfs that I add later? When I go to Preferences/Import-Export/Saving books to disk, I get something that looks like what I want, but what I have there doesn't seem to match what Calibre is doing (screenshot below)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Easy answer is you don't.  The format of the calibre library is to be treated as a black box. Stop trying to peek under the skirts. See the calibre faqs for Why doesn’t calibre let me store books in my own folder structure? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	What you do with the filenames you export is up to you and any templates you may create. The number is the bookid in the database for that library. As an example, it will be used when rebuilding the library database if the database gets corrupted. As for the truncation, that is due to the maximum path lengths in many operating systems. For Windows, that would be 254 characters. Again, the database records the full title and you can see it in your exported files. You don't like this? calibre is open source so feel free to modify it for your use. You may also want to read the following message: Want to change folder structure or file names in the Calibre library?. Nothing has really changed since it was written back in 2011. Edit: Manichean's message is stickied in the Library Managment subforum.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Still reading 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,004 
				Karma: 111111255 
				Join Date: Jun 2017 
				Location: Ireland 
				
				
				Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Also even if you could, it won't work. Titles can easily have characters illegal in file names (varies with OS and filesytem in use). 
		
	
		
		
		
		
		
		
		
		
		
		
	
	As DNSB says, pretend the Calibre files don't exist. They only exist at all because it's never worked well for any database to import that sort of thing inside a database. That's why there is an Export to Disk File command and also why Calibre creates a copy of any file imported (as if it was really inside a database).  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 72 
				Karma: 10 
				Join Date: Oct 2016 
				
				
				
				Device: iPad Pro 12.9" 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			OK, thanks. But if we can't determine the filename format, what is that menu I took a screenshot of? That's what it looks like it's supposed to allow one to do. It specifically says, "You can control what folders the files are saved in and what filenames they are given."
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Adding Books to a library and Saving Books to Disk are separate Actions, see ==>> The Graphical User Interface — calibre 6.7.1 documentation 
		
	
		
		
		
		
		
		
		
		
		
		
	
	BR  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,465 
				Karma: 10684861 
				Join Date: May 2006 
				
				
				
				Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 You can not change how the Calibre saves the books to its library folder. We have had this discussion numerous times here. Not possible. Out of question. Calibre has milions of users and has version for Windows, Mac, Linux. There is also FreeBSD port but appears to be older version. You can even use Library created on one operating system under another one (or at very least do an import). You are supposed to treat the library as a black box and only access the files through the Calibre interface. When you want to have a subset of your books for export to a device, for example, you use "save to disk" function or "send to device" function. Calibre interface is much more powerful for working with books than any file manager. The books are in individual files, with cover images and metadata.opf file only to make the system more robust in case something catastrophic happens - like disk corruption, irreparable crash of Calibre database or whatever. It is not supposed to be accessed by user under normal circumstances.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 72 
				Karma: 10 
				Join Date: Oct 2016 
				
				
				
				Device: iPad Pro 12.9" 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			OK sorry to dredge this topic up again. Your answers are clear. The reason I was asking this is, when sync the files Calibre Companion on my iPad and then export the files from Calibre Companion to one of my various e-book platforms, the files display in those e-book apps as the filename rather than with the title & author metadata that I edited and saved in Calibre.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	If I can't change the file name, is there a way to sync files to my Calibre Companion and other e-book programs in a way that they understand and import all relevant metadata?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 72 
				Karma: 10 
				Join Date: Oct 2016 
				
				
				
				Device: iPad Pro 12.9" 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Change Filename format in repertories? | aurigod | Library Management | 6 | 12-02-2015 05:15 PM | 
| Filename format for input control | Tom Swift | Library Management | 4 | 04-06-2013 03:36 AM | 
| Save to Disc - Folder name / Filename Problems | Distorted Vision | Library Management | 19 | 03-11-2012 11:37 AM | 
| Help with filename format in save | jblitereader | Calibre | 16 | 08-27-2010 08:18 PM | 
| output filename format | jdh | Calibre | 6 | 08-12-2009 10:35 PM |