Skip to content
Snippets Groups Projects
Commit 035d83fe authored by Robin Appelman's avatar Robin Appelman
Browse files

don't use the workaround for shared files on the /Shared folder

parent 025d3089
Branches
Tags
No related merge requests found
...@@ -43,12 +43,16 @@ class OC_Files { ...@@ -43,12 +43,16 @@ class OC_Files {
*/ */
public static function getFileInfo($path) { public static function getFileInfo($path) {
if (($path == '/Shared' || substr($path, 0, 8) == '/Shared/') && OC_App::isEnabled('files_sharing')) { if (($path == '/Shared' || substr($path, 0, 8) == '/Shared/') && OC_App::isEnabled('files_sharing')) {
if ($path == '/Shared') {
list($info) = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT);
}else{
$info['size'] = OC_Filesystem::filesize($path); $info['size'] = OC_Filesystem::filesize($path);
$info['mtime'] = OC_Filesystem::filemtime($path); $info['mtime'] = OC_Filesystem::filemtime($path);
$info['ctime'] = OC_Filesystem::filectime($path); $info['ctime'] = OC_Filesystem::filectime($path);
$info['mimetype'] = OC_Filesystem::getMimeType($path); $info['mimetype'] = OC_Filesystem::getMimeType($path);
$info['encrypted'] = false; $info['encrypted'] = false;
$info['versioned'] = false; $info['versioned'] = false;
}
} else { } else {
$info = OC_FileCache::get($path); $info = OC_FileCache::get($path);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment