diff --git a/src/Cleanup.php b/src/Cleanup.php index dae76f1a..95fa3884 100644 --- a/src/Cleanup.php +++ b/src/Cleanup.php @@ -61,6 +61,9 @@ public function cleanup(array $sourceFiles): void $absolutePath = $this->workingDir . $relativeDirectoryPath; + // Fix for Windows paths. + $absolutePath = str_replace(['\\','/'], DIRECTORY_SEPARATOR, $absolutePath); + if (is_link($absolutePath)) { unlink($absolutePath); }