extract the right parent directory from the path

add parent directory to the file cache if it does not exist yet.
This commit is contained in:
Björn Schießle 2012-10-09 16:21:46 +02:00
parent 8e0676a66b
commit 38e9bc2adb
1 changed files with 1 additions and 1 deletions

View File

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