Properly delete empty directories in Trashbin

Instead of checking delted file size, we do a real check.

this fixes #1688
remotes/origin/stable5
Qingping Hou 12 years ago
parent 50759607e4
commit 4b4b1f8692
  1. 4
      apps/files_trashbin/ajax/delete.php

@ -15,7 +15,9 @@ if ($path_parts['dirname'] == '.') {
$timestamp = null;
}
if (OCA\Files_Trashbin\Trashbin::delete($filename, $timestamp)) {
OCA\Files_Trashbin\Trashbin::delete($filename, $timestamp);
if (!OCA\Files_Trashbin\Trashbin::file_exists($filename)) {
OCP\JSON::success(array("data" => array("filename" => $file)));
} else {
$l = OC_L10N::get('files_trashbin');

Loading…
Cancel
Save