From a3ea03a2499638c038c9f9c7e957e9fb365bf162 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 16 Apr 2021 12:22:48 +0200 Subject: [PATCH] fix test on windows --- src/Console/Command/ListFilesCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Console/Command/ListFilesCommand.php b/src/Console/Command/ListFilesCommand.php index 4428fe6c7bd..b0d8cd6a114 100644 --- a/src/Console/Command/ListFilesCommand.php +++ b/src/Console/Command/ListFilesCommand.php @@ -84,6 +84,9 @@ protected function execute(InputInterface $input, OutputInterface $output) foreach ($finder as $file) { if ($file->isFile()) { $relativePath = str_replace($cwd, '.', $file->getPathname()); + // unify directory separators across operating system + $relativePath = str_replace('/', \DIRECTORY_SEPARATOR, $relativePath); + $output->writeln(escapeshellarg($relativePath)); } }