diff options
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/files.php b/lib/files.php index 705b7a6ca66..469c3a15b8e 100644 --- a/lib/files.php +++ b/lib/files.php @@ -30,13 +30,10 @@ class OC_Files { /** * get the content of a directory - * @param dir $directory + * @param dir $directory path under datadirectory */ public static function getDirectoryContent($directory, $mimetype_filter = ''){ - if(strpos($directory,OC::$CONFIG_DATADIRECTORY)===0){ - $directory=substr($directory,strlen(OC::$CONFIG_DATADIRECTORY)); - } - $files=OC_FileCache::getFolderContent($directory, '', $mimetype_filter); + $files=OC_FileCache::getFolderContent($directory, false, $mimetype_filter); foreach($files as &$file){ $file['directory']=$directory; $file['type']=($file['mimetype']=='httpd/unix-directory')?'dir':'file'; |