Skip to content

Commit 3cda6cd

Browse files
committed
Added cloud pr suggestion, check if path exists and is writable
1 parent a7a426b commit 3cda6cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Specs/PathResolver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ private function getSharedArtifactDirectory(string $sharedSubdirectory): ?string
9898
return null;
9999
}
100100

101+
if (!is_dir($sharedBasePath) || !is_writable($sharedBasePath)) {
102+
return null;
103+
}
104+
101105
return rtrim($sharedBasePath, '/\\') . self::SHARED_BASE_SUBDIRECTORY . ltrim(substr($sharedSubdirectory, strlen(self::SHARED_BASE_SUBDIRECTORY)), '/\\');
102106
}
103107

0 commit comments

Comments
 (0)