summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-06 18:31:18 +0200
committerGitHub <noreply@github.com>2017-07-06 18:31:18 +0200
commitb4a221f9beae44634931abb193198d02eda30fad (patch)
tree0b600b26112f8d00a9e74dd219f3aaf75285acfb /lib/private/Files
parentad1d4d363fca28b34396bcfb605ba5336cf040f7 (diff)
parent601362e164632a1b68e896bd5359d0b7308eed4f (diff)
downloadnextcloud-server-b4a221f9beae44634931abb193198d02eda30fad.tar.gz
nextcloud-server-b4a221f9beae44634931abb193198d02eda30fad.zip
Merge pull request #5424 from nextcloud/moveFromCache-from-shared
fix moving folders out of a cache jail
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Cache/Wrapper/CacheJail.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php
index ebab20fbaed..8f12ca77ee6 100644
--- a/lib/private/Files/Cache/Wrapper/CacheJail.php
+++ b/lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -94,7 +94,7 @@ class CacheJail extends CacheWrapper {
* get the stored metadata of a file or folder
*
* @param string /int $file
- * @return array|false
+ * @return ICacheEntry|false
*/
public function get($file) {
if (is_string($file) or $file == '') {
@@ -176,6 +176,16 @@ class CacheJail extends CacheWrapper {
}
/**
+ * Get the storage id and path needed for a move
+ *
+ * @param string $path
+ * @return array [$storageId, $internalPath]
+ */
+ protected function getMoveInfo($path) {
+ return [$this->getNumericStorageId(), $this->getSourcePath($path)];
+ }
+
+ /**
* remove all entries for files that are stored on the storage from the cache
*/
public function clear() {