]> source.dussan.org Git - nextcloud-server.git/commitdiff
make paths returned by OC_FILESYSTEM::getTree relative to the fakeroot
authorRobin Appelman <icewind1991@gmail.com>
Tue, 28 Sep 2010 21:07:13 +0000 (23:07 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Tue, 28 Sep 2010 21:07:13 +0000 (23:07 +0200)
inc/lib_filesystem.php

index 263b1d7a4193ec600c95ff37225cba39c6c48a85..c8cbd1cb80d1954083130fcfd5007e8b842e60c0 100644 (file)
@@ -363,6 +363,7 @@ class OC_FILESYSTEM{
                                        $file=substr($file,1);
                                }
                                $file=$mp.$file;
+                               $file=substr($file,strlen(self::$fakeRoot));
                        }
                        return $return;
                }