check if file exists before fixing file size

This commit is contained in:
Florin Peter 2013-04-27 20:22:38 +02:00
parent ba080e0d2e
commit 770aebfb9e

View file

@ -453,7 +453,7 @@ class Util {
$proxyStatus = \OC_FileProxy::$enabled;
\OC_FileProxy::$enabled = false;
if ($this->isEncryptedPath($path)) {
if ($this->view->file_exists($path) && $this->isEncryptedPath($path)) {
// Reformat path for use with OC_FSV
$pathSplit = explode( '/', $path );