diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-02-12 13:58:07 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-05-29 16:26:01 +0200 |
commit | fb7ec2bb22055886d55a779b9c19f48daee438c5 (patch) | |
tree | 99d6acc04e57a5985457cdf9ef82472dee7f7db3 /lib | |
parent | df29eec72b2b094acca97636c6b91ab2eafc245d (diff) | |
download | nextcloud-server-fb7ec2bb22055886d55a779b9c19f48daee438c5.tar.gz nextcloud-server-fb7ec2bb22055886d55a779b9c19f48daee438c5.zip |
Only call $this->filesize() for files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/local.php | 2 | ||||
-rw-r--r-- | lib/private/files/storage/mappedlocal.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index 883a69d7681..f4bc5085364 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -89,7 +89,7 @@ if (\OC_Util::runningOnWindows()) { public function stat($path) { $fullPath = $this->datadir . $path; $statResult = stat($fullPath); - if (PHP_INT_SIZE === 4) { + if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) { $filesize = $this->filesize($path); $statResult['size'] = $filesize; $statResult[7] = $filesize; diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php index 78d2616ba9d..f38b48db5de 100644 --- a/lib/private/files/storage/mappedlocal.php +++ b/lib/private/files/storage/mappedlocal.php @@ -111,7 +111,7 @@ class MappedLocal extends \OC\Files\Storage\Common { public function stat($path) { $fullPath = $this->buildPath($path); $statResult = stat($fullPath); - if (PHP_INT_SIZE === 4) { + if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) { $filesize = $this->filesize($path); $statResult['size'] = $filesize; $statResult[7] = $filesize; |