this should be done elsewhere if needed

This commit is contained in:
Robin Appelman 2012-09-22 15:48:39 +02:00
parent 97b0eabc85
commit 6fafd5d4e9
2 changed files with 1 additions and 2 deletions

View File

@ -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();

View File

@ -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') {