Remove Dropbox metadata from cache after upload

This will make sure that the next calls that read the mtime will get the
correct value.
This commit is contained in:
Vincent Petry 2015-10-16 13:47:00 +02:00
parent 7224e99ccd
commit 796179af00
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}