extract the right parent directory from the path

add parent directory to the file cache if it does not exist yet.
remotes/origin/stable45
Björn Schießle 13 years ago
parent 4f8b8a8a59
commit e23b06ec8c
  1. 2
      lib/filecache.php

@ -79,7 +79,7 @@ class OC_FileCache{
// add parent directory to the file cache if it does not exist yet.
if ($parent == -1 && $fullpath != $root) {
$parentDir = substr(dirname($path), 0, strrpos(dirname($path), DIRECTORY_SEPARATOR));
$parentDir = dirname($path);
self::scanFile($parentDir);
$parent = self::getParentId($fullpath);
}

Loading…
Cancel
Save