Skip to content

Commit c69358f

Browse files
authored
Merge pull request #70 from Hackwar/3.x-chmod
Remove check for chmod in File::delete()
2 parents c636a13 + f130533 commit c69358f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/File.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ public static function delete($file)
159159
$file = Path::clean($file);
160160
$filename = basename($file);
161161

162-
if (!Path::canChmod($file)) {
163-
throw new FilesystemException(__METHOD__ . ': Failed deleting inaccessible file ' . $filename);
164-
}
165-
166162
// Try making the file writable first. If it's read-only, it can't be deleted
167163
// on Windows, even if the parent folder is writable
168164
@chmod($file, 0777);

0 commit comments

Comments
 (0)