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

when scanning a folder that is a mountpoint, use the root of the mount for...

when scanning a folder that is a mountpoint, use the root of the mount for checking if a folder is writable instead of the folder
parent 58adeaa8
Branches
No related tags found
No related merge requests found
......@@ -564,9 +564,13 @@ class OC_FileCache{
}
if(!$view->is_readable($path)) return; //cant read, nothing we can do
clearstatcache();
$stat=$view->stat($path);
$mimetype=$view->getMimeType($path);
$writable=$view->is_writable($path);
$stat=$view->stat($path);
if($mimetype=='httpd/unix-directory'){
$writable=$view->is_writable($path.'/');
}else{
$writable=$view->is_writable($path);
}
$stat['mimetype']=$mimetype;
$stat['writable']=$writable;
if($path=='/'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment