mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	update Cache folder creation to leverage ensureDirs
This commit is contained in:
		
							parent
							
								
									35f29ca22b
								
							
						
					
					
						commit
						c606a41314
					
				@ -19,17 +19,17 @@ class CacheManager {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    var pathsCreated = false
 | 
					    var pathsCreated = false
 | 
				
			||||||
    if (!(await fs.pathExists(this.CachePath))) {
 | 
					    if (!(await fs.pathExists(this.CachePath))) {
 | 
				
			||||||
      await fs.mkdir(this.CachePath)
 | 
					      await fs.ensureDir(this.CachePath)
 | 
				
			||||||
      pathsCreated = true
 | 
					      pathsCreated = true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!(await fs.pathExists(this.CoverCachePath))) {
 | 
					    if (!(await fs.pathExists(this.CoverCachePath))) {
 | 
				
			||||||
      await fs.mkdir(this.CoverCachePath)
 | 
					      await fs.ensureDir(this.CoverCachePath)
 | 
				
			||||||
      pathsCreated = true
 | 
					      pathsCreated = true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!(await fs.pathExists(this.ImageCachePath))) {
 | 
					    if (!(await fs.pathExists(this.ImageCachePath))) {
 | 
				
			||||||
      await fs.mkdir(this.ImageCachePath)
 | 
					      await fs.ensureDir(this.ImageCachePath)
 | 
				
			||||||
      pathsCreated = true
 | 
					      pathsCreated = true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user