this should be done elsewhere if needed
This commit is contained in:
parent
97b0eabc85
commit
6fafd5d4e9
2 changed files with 1 additions and 2 deletions
2
lib/files/cache/cache.php
vendored
2
lib/files/cache/cache.php
vendored
|
@ -152,7 +152,7 @@ class Cache {
|
|||
* get the id of the parent folder of a file
|
||||
*
|
||||
* @param \OC\Files\File $file
|
||||
* return int
|
||||
* @return int
|
||||
*/
|
||||
static public function getParentId(\OC\Files\File $file) {
|
||||
$path = $file->getInternalPath();
|
||||
|
|
1
lib/files/cache/scanner.php
vendored
1
lib/files/cache/scanner.php
vendored
|
@ -23,7 +23,6 @@ class Scanner {
|
|||
$storage = $file->getStorage();
|
||||
$path = $file->getInternalPath();
|
||||
if (!$storage->isReadable($path)) return null; //cant read, nothing we can do
|
||||
clearstatcache();
|
||||
$data['mimetype'] = $storage->getMimeType($path);
|
||||
$data['mtime'] = $storage->filemtime($path);
|
||||
if ($data['mimetype'] == 'httpd/unix-directory') {
|
||||
|
|
Loading…
Reference in a new issue