Skip to content

Commit

Permalink
fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Apr 16, 2021
1 parent a32a8ff commit a3ea03a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/Command/ListFilesCommand.php
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit a3ea03a

Please sign in to comment.