Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-10-09 18:21:46 +0400
committerBjörn Schießle <schiessle@owncloud.com>2012-10-09 18:24:49 +0400
commit38e9bc2adbacb4ce4a7801996ec143f067a9d731 (patch)
treedbf3116df1bef8b98757a92dc026d99e9880ca2b
parent8e0676a66bd9d928f5282d4642d93f13f6cc9e46 (diff)
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.php2
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);
}