summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trash.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 2d1830a38f1..7b8d3cb4252 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -50,12 +50,19 @@ class Trashbin {
$view = new \OC\Files\View('/'. $user);
if (!$view->is_dir('files_trashbin')) {
$view->mkdir('files_trashbin');
+ }
+ if (!$view->is_dir('files_trashbin/files')) {
$view->mkdir('files_trashbin/files');
+ }
+ if (!$view->is_dir('files_trashbin/versions')) {
$view->mkdir('files_trashbin/versions');
+ }
+ if (!$view->is_dir('files_trashbin/keyfiles')) {
$view->mkdir('files_trashbin/keyfiles');
- $view->mkdir('files_trashbin/share-keys');
}
-
+ if (!$view->is_dir('files_trashbin/share-keys')) {
+ $view->mkdir('files_trashbin/share-keys');
+ }
$path_parts = pathinfo($file_path);
$filename = $path_parts['basename'];