summaryrefslogtreecommitdiffstats
path: root/lib/private/largefilehelper.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-15 21:12:50 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-15 21:12:50 +0200
commit63e05992189aeca96bd719b97f43158903e52586 (patch)
treebd59d7c2d28f8bc99cc8b59b771be98990f03455 /lib/private/largefilehelper.php
parentf82b996f5767d60f7d16968b2959f9d3d925d1fd (diff)
parentbf84cd4bccceaaccd0209cacfbad474bbd448348 (diff)
downloadnextcloud-server-63e05992189aeca96bd719b97f43158903e52586.tar.gz
nextcloud-server-63e05992189aeca96bd719b97f43158903e52586.zip
Merge pull request #11565 from owncloud/fix-behaviourOnOSX
Add darwin to if block
Diffstat (limited to 'lib/private/largefilehelper.php')
-rw-r--r--lib/private/largefilehelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/largefilehelper.php b/lib/private/largefilehelper.php
index 33f32255f3b..750ba1d23de 100644
--- a/lib/private/largefilehelper.php
+++ b/lib/private/largefilehelper.php
@@ -151,7 +151,7 @@ class LargeFileHelper {
$result = null;
if (strpos($os, 'linux') !== false) {
$result = $this->exec("stat -c %s $arg");
- } else if (strpos($os, 'bsd') !== false) {
+ } else if (strpos($os, 'bsd') !== false || strpos($os, 'darwin') !== false) {
$result = $this->exec("stat -f %z $arg");
} else if (strpos($os, 'win') !== false) {
$result = $this->exec("for %F in ($arg) do @echo %~zF");