Skip to content

Commit

Permalink
chmod on bulk directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane MEAUDRE committed Mar 25, 2024
1 parent 885e3ec commit c3f7ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Command/ImportDataFullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$outputDirName = dirname($outputFilename);

if (!file_exists($outputDirName)) {
if (!mkdir($concurrentDirectory = dirname($outputFilename), '0755') && !is_dir($concurrentDirectory)) {
if (!mkdir($concurrentDirectory = dirname($outputFilename), 0775) && !is_dir($concurrentDirectory)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
}
}
Expand Down

0 comments on commit c3f7ee2

Please sign in to comment.