We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97ae764 commit 10ef767Copy full SHA for 10ef767
1 file changed
src/Pipeline/FileEnumerator.php
@@ -86,10 +86,13 @@ protected function addFile(
86
?string $autoloaderType = null
87
): void {
88
89
+ if ($this->filesystem->directoryExists($sourceAbsoluteFilepath)) {
90
+ $this->logger->debug("Skipping directory at {sourcePath}", ['sourcePath' => $sourceAbsoluteFilepath]);
91
+ return;
92
+ }
93
+
94
// Do not add a file if its source does not exist!
- if (!$this->filesystem->fileExists($sourceAbsoluteFilepath)
- ) {
-// && !$this->filesystem->directoryExists($sourceAbsoluteFilepath)) {
95
+ if (!$this->filesystem->fileExists($sourceAbsoluteFilepath)) {
96
$this->logger->warning("File does not exist: {sourcePath}", ['sourcePath' => $sourceAbsoluteFilepath]);
97
return;
98
}
0 commit comments