]> source.dussan.org Git - nextcloud-server.git/commitdiff
Recreate trashbin folder after full deletion
authorVincent Petry <pvince81@owncloud.com>
Tue, 24 Mar 2015 22:02:14 +0000 (23:02 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 24 Mar 2015 22:02:14 +0000 (23:02 +0100)
apps/files_trashbin/lib/trashbin.php

index 6a7636a46f28515f2d30d58891f27444edf7b293..b2a3478f6fa879690d62472f4b4cef7130ad1dff 100644 (file)
@@ -508,6 +508,8 @@ class Trashbin {
                $view->deleteAll('files_trashbin');
                $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?');
                $query->execute(array($user));
+               $view->mkdir('files_trashbin');
+               $view->mkdir('files_trashbin/files');
 
                return true;
        }