Skip to content

Commit

Permalink
Always set directory-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
C9Glax committed Oct 30, 2024
1 parent 4690394 commit bd8cb86
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Tranga/Jobs/JobBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,11 @@ private void AddJobsToQueue(IEnumerable<Job> newJobs)

private void LoadJobsList(HashSet<MangaConnector> connectors)
{
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
{
Directory.CreateDirectory(TrangaSettings.jobsFolderPath);
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
File.SetUnixFileMode(TrangaSettings.jobsFolderPath, UserRead | UserWrite | UserExecute | GroupRead | OtherRead);
return;
}
Regex idRex = new (@"(.*)\.json");

//Load json-job-files
Expand Down

0 comments on commit bd8cb86

Please sign in to comment.