diff options
author | Bastien Ho <bastienho@urbancube.fr> | 2013-05-10 11:12:42 +0200 |
---|---|---|
committer | Bastien Ho <bastienho@urbancube.fr> | 2013-05-10 11:12:42 +0200 |
commit | 6082a09e6251ba19aa281c4bc8c2c99438df6328 (patch) | |
tree | 89a88f3a80f4249f7d5993a2791c61ef05404ae4 /apps/files_trashbin/lib | |
parent | c112ac440822c354818e3b904194c957b580b608 (diff) | |
download | nextcloud-server-6082a09e6251ba19aa281c4bc8c2c99438df6328.tar.gz nextcloud-server-6082a09e6251ba19aa281c4bc8c2c99438df6328.zip |
Fix inexisting trashbin's sub-folders
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/trash.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php index 88c71a75ab0..210f72da631 100644 --- a/apps/files_trashbin/lib/trash.php +++ b/apps/files_trashbin/lib/trash.php @@ -39,12 +39,22 @@ 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'); + } + if (!$view->is_dir('files_trashbin/files')) { + $view->mkdir('files_trashbin/files'); + } $path_parts = pathinfo($file_path); $filename = $path_parts['basename']; |