mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-04 03:17:00 -05:00 
			
		
		
		
	Merge pull request #3186 from nichwall/author_image_restore
Ensure author and items folder is created before restoring backup
This commit is contained in:
		
						commit
						215b78c162
					
				@ -216,7 +216,9 @@ class BackupManager {
 | 
				
			|||||||
    Logger.info(`[BackupManager] Saved backup sqlite file at "${dbPath}"`)
 | 
					    Logger.info(`[BackupManager] Saved backup sqlite file at "${dbPath}"`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Extract /metadata/items and /metadata/authors folders
 | 
					    // Extract /metadata/items and /metadata/authors folders
 | 
				
			||||||
 | 
					    await fs.ensureDir(this.ItemsMetadataPath)
 | 
				
			||||||
    await zip.extract('metadata-items/', this.ItemsMetadataPath)
 | 
					    await zip.extract('metadata-items/', this.ItemsMetadataPath)
 | 
				
			||||||
 | 
					    await fs.ensureDir(this.AuthorsMetadataPath)
 | 
				
			||||||
    await zip.extract('metadata-authors/', this.AuthorsMetadataPath)
 | 
					    await zip.extract('metadata-authors/', this.AuthorsMetadataPath)
 | 
				
			||||||
    await zip.close()
 | 
					    await zip.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user