diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-09 16:21:46 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-09 16:24:49 +0200 |
commit | 38e9bc2adbacb4ce4a7801996ec143f067a9d731 (patch) | |
tree | dbf3116df1bef8b98757a92dc026d99e9880ca2b | |
parent | 8e0676a66bd9d928f5282d4642d93f13f6cc9e46 (diff) | |
download | nextcloud-server-38e9bc2adbacb4ce4a7801996ec143f067a9d731.tar.gz nextcloud-server-38e9bc2adbacb4ce4a7801996ec143f067a9d731.zip |
extract the right parent directory from the pathv4.5.0
add parent directory to the file cache if it does not exist yet.
-rw-r--r-- | lib/filecache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index d68525d9a54..8fcb6fd9404 100644 --- a/lib/filecache.php +++ b/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); } |