mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(download-sample) Set +x permissions on directories created during this job
This commit is contained in:
parent
38aedb50ac
commit
c9ee0c909e
@ -91,7 +91,12 @@ public class DownloadSampleActor extends RecordActorPrototype {
|
|||||||
transferBytes(tar, fos, buffer, size);
|
transferBytes(tar, fos, buffer, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
Files.setPosixFilePermissions(outputPath, PosixFilePermissions.fromString("rw-r--r--"));
|
if (Files.isDirectory(outputPath)) {
|
||||||
|
Files.setPosixFilePermissions(outputPath, PosixFilePermissions.fromString("rwxr-xr-x"));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Files.setPosixFilePermissions(outputPath, PosixFilePermissions.fromString("rw-r--r--"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user