no error if we try to delete a file which no longer exists
This commit is contained in:
parent
5bbecdb9ee
commit
5b75b15292
|
@ -26,7 +26,8 @@ $success = true;
|
||||||
|
|
||||||
//Now delete
|
//Now delete
|
||||||
foreach ($files as $file) {
|
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";
|
$filesWithError .= $file . "\n";
|
||||||
$success = false;
|
$success = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue