We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f0aa3b + e0b2385 commit 119a635Copy full SHA for 119a635
1 file changed
lib/private/Preview/Storage/LocalPreviewStorage.php
@@ -81,7 +81,9 @@ private function constructPath(Preview $preview): string {
81
82
private function createParentFiles(string $path): void {
83
$dirname = dirname($path);
84
- @mkdir($dirname, recursive: true);
+ if (!is_dir($dirname)) {
85
+ mkdir($dirname, recursive: true);
86
+ }
87
if (!is_dir($dirname)) {
88
throw new NotPermittedException("Unable to create directory '$dirname'");
89
}
0 commit comments