Skip to content
Snippets Groups Projects
Commit e9898348 authored by Robin Appelman's avatar Robin Appelman Committed by Thomas Müller
Browse files

handle deleting non existing files

parent e5731b6e
Branches
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ class SMB extends Common {
* @return bool
*/
public function unlink($path) {
try {
if ($this->is_dir($path)) {
return $this->rmdir($path);
} else {
......@@ -122,6 +123,9 @@ class SMB extends Common {
$this->share->del($path);
return true;
}
} catch (NotFoundException $e) {
return false;
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment