diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-08 16:16:01 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-11 12:03:08 +0200 |
commit | 5b75b1529299368f54e1c7fe34ada139acdf3cf9 (patch) | |
tree | 7fee1ce533d9d234cb7f10e613ef373c0914405d /apps/files/ajax | |
parent | 5bbecdb9eeae1981cc64fe90f54829345507b92b (diff) | |
download | nextcloud-server-5b75b1529299368f54e1c7fe34ada139acdf3cf9.tar.gz nextcloud-server-5b75b1529299368f54e1c7fe34ada139acdf3cf9.zip |
no error if we try to delete a file which no longer exists
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/delete.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php index 196bccea0f6..aed53d5db5a 100644 --- a/apps/files/ajax/delete.php +++ b/apps/files/ajax/delete.php @@ -26,7 +26,8 @@ $success = true; //Now delete foreach ($files as $file) { - if (!\OC\Files\Filesystem::unlink($dir . '/' . $file)) { + if (\OC\Files\Filesystem::file_exists($dir . '/' . $file) && + !\OC\Files\Filesystem::unlink($dir . '/' . $file)) { $filesWithError .= $file . "\n"; $success = false; } |