Keep downloaded images in memory instead of writing to disk and then deleting.

This commit is contained in:
2025-09-24 17:25:47 +02:00
parent 03a042a5ec
commit 7954c4b72e
2 changed files with 77 additions and 53 deletions

View File

@@ -86,9 +86,10 @@ public class Manga : Identifiable
if (publicationFolder is null)
throw new DirectoryNotFoundException("Publication folder not found");
if(!Directory.Exists(publicationFolder))
Directory.CreateDirectory(publicationFolder);
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
File.SetUnixFileMode(publicationFolder, GroupRead | GroupWrite | GroupExecute | OtherRead | OtherWrite | OtherExecute | UserRead | UserWrite | UserExecute);
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Directory.CreateDirectory(publicationFolder, UserRead | UserWrite | UserExecute | GroupRead | GroupWrite | GroupExecute );
else
Directory.CreateDirectory(publicationFolder);
return publicationFolder;
}