Skip to content
Permalink
Browse files

[config:export] Warnings on language directories (#3863)

  • Loading branch information...
Omegadela authored and LOBsTerr committed Mar 19, 2019
1 parent e60ecb6 commit 1a7ba5332c8bf8515a88b5047a328128032cd4de
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Command/Config/ExportCommand.php
@@ -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();
@@ -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";

0 comments on commit 1a7ba53

Please sign in to comment.
You can’t perform that action at this time.