From 44946e208d22b0175fd14a3b1ac2a388bc3e58ba Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Tue, 28 Sep 2010 23:07:13 +0200
Subject: [PATCH] make paths returned by OC_FILESYSTEM::getTree relative to the
 fakeroot

---
 inc/lib_filesystem.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php
index 263b1d7a41..c8cbd1cb80 100644
--- a/inc/lib_filesystem.php
+++ b/inc/lib_filesystem.php
@@ -363,6 +363,7 @@ class OC_FILESYSTEM{
 					$file=substr($file,1);
 				}
 				$file=$mp.$file;
+				$file=substr($file,strlen(self::$fakeRoot));
 			}
 			return $return;
 		}
-- 
GitLab