Skip to content

Commit

Permalink
[config:export] Warnings on language directories (#3863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omegadela authored and LOBsTerr committed Mar 19, 2019
1 parent e60ecb6 commit 1a7ba53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/Config/ExportCommand.php
Expand Up @@ -103,7 +103,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

// Remove previous yaml files before creating new ones
array_map('unlink', glob($directory . '/*'));
foreach (glob($directory . '/*') as $item) {
$fileSystem->remove($item);
}

if ($tar) {
$dateTime = new \DateTime();
Expand Down Expand Up @@ -143,7 +145,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$collection_storage = $this->storage->createCollection($collection);
$collection_path = str_replace('.', '/', $collection);
if (!$tar) {
mkdir("$directory/$collection_path", 0755, true);
$fileSystem->mkdir("$directory/$collection_path", 0755);
}
foreach ($collection_storage->listAll() as $name) {
$configName = "$collection_path/$name.yml";
Expand Down

0 comments on commit 1a7ba53

Please sign in to comment.