From fb87aa61e7154acbdcc5f93fed0331bd3c4da990 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 22 Mar 2017 17:17:37 -0600 Subject: [PATCH] fix path for files from root folder Signed-off-by: Morris Jobke --- apps/files_trashbin/lib/Helper.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/Helper.php b/apps/files_trashbin/lib/Helper.php index faf84369e72..a309d533e54 100644 --- a/apps/files_trashbin/lib/Helper.php +++ b/apps/files_trashbin/lib/Helper.php @@ -91,7 +91,11 @@ class Helper { 'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_SHARE ); if ($originalPath) { - $i['extraData'] = $originalPath . '/' . $originalName; + if ($originalPath !== '.') { + $i['extraData'] = $originalPath . '/' . $originalName; + } else { + $i['extraData'] = $originalName; + } } $result[] = new FileInfo($absoluteDir . '/' . $i['name'], $storage, $internalPath . '/' . $i['name'], $i, $mount); } -- 2.39.5