(download-sample) Set +x permissions on directories created during this job

This commit is contained in:
Viktor Lofgren 2024-04-30 18:25:07 +02:00
parent 38aedb50ac
commit c9ee0c909e

View File

@ -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--"));
}
} }
} }
} }