Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from OFFLINE-GmbH/1.0
Browse files Browse the repository at this point in the history
Only unlink existing files
  • Loading branch information
timothymarois committed Sep 29, 2018
2 parents c7b426a + e1792e7 commit 33c4afe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public static function write($path, $contents)
*/
public static function delete($path)
{
if (!file_exists($path)) {
return true;
}

return unlink($path);
}

Expand Down

0 comments on commit 33c4afe

Please sign in to comment.