mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-21 00:58:32 -05:00
make sure images folder exists
This commit is contained in:
@@ -8,6 +8,10 @@ export function fetchItemImage(itemId: string, imageType: ImageType = ImageType.
|
||||
|
||||
return new Promise<string>(async (resolve, reject) => {
|
||||
|
||||
// Make sure images folder exists in cache, create if it doesn't
|
||||
if (!(await FileSystem.exists(`${Dirs.CacheDir}/images`)))
|
||||
await FileSystem.mkdir(`${Dirs.CacheDir}/images`)
|
||||
|
||||
const existingImage = await FileSystem.exists(getImageFilePath(itemId, imageType, width, height))
|
||||
|
||||
if (existingImage)
|
||||
|
||||
Reference in New Issue
Block a user