Always set directory-permissions

This commit is contained in:
Glax 2024-10-30 22:29:16 +01:00
parent 4690394437
commit bd8cb86c52

View File

@ -144,14 +144,12 @@ public class JobBoss : GlobalBase
}
private void LoadJobsList(HashSet<MangaConnector> connectors)
{
if (!Directory.Exists(TrangaSettings.jobsFolderPath)) //No jobs to load
{
Directory.CreateDirectory(TrangaSettings.jobsFolderPath);
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
File.SetUnixFileMode(TrangaSettings.jobsFolderPath, UserRead | UserWrite | UserExecute | GroupRead | OtherRead);
if (!Directory.Exists(TrangaSettings.jobsFolderPath)) //No jobs to load
return;
}
Regex idRex = new (@"(.*)\.json");
//Load json-job-files