Reenable file proxy when renaming between mount points

When moving a folder into another mount point, $renamedFiles is empty
because that goes over a different mechanism.

In such case, this fix makes sure that the file proxy is reenable to
avoid breaking the subsequent files that are being moved.
This commit is contained in:
Vincent Petry 2014-09-18 19:21:04 +02:00
parent c89c6ed21d
commit f2a01dddbc
1 changed files with 1 additions and 0 deletions

View File

@ -484,6 +484,7 @@ class Hooks {
unset(self::$renamedFiles[$params['oldpath']]);
} else {
\OCP\Util::writeLog('Encryption library', "can't get path and owner from the file before it was renamed", \OCP\Util::DEBUG);
\OC_FileProxy::$enabled = $proxyStatus;
return false;
}