[Pkg-owncloud-commits] [owncloud] 91/129: Remove Dropbox metadata from cache after upload
David Prévot
taffit at moszumanska.debian.org
Thu Nov 5 01:04:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 019e72040a9c9173c106f169e37d6424ea09e487
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Fri Oct 16 13:47:00 2015 +0200
Remove Dropbox metadata from cache after upload
This will make sure that the next calls that read the mtime will get the
correct value.
---
apps/files_external/lib/dropbox.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index 4ab14d4..6a822c3 100644
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -288,6 +288,7 @@ class Dropbox extends \OC\Files\Storage\Common {
try {
$this->dropbox->putFile(self::$tempFiles[$tmpFile], $handle);
unlink($tmpFile);
+ $this->deleteMetaData(self::$tempFiles[$tmpFile]);
} catch (\Exception $exception) {
\OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list