summaryrefslogtreecommitdiffstats
path: root/lib/private/largefilehelper.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-14 12:58:00 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-14 12:58:00 +0200
commitbf84cd4bccceaaccd0209cacfbad474bbd448348 (patch)
tree572a99820f6f090cdab1c0f2720b260434b33c55 /lib/private/largefilehelper.php
parent766314a6be5a24a4bd7d503d9c44998c13fe348b (diff)
downloadnextcloud-server-bf84cd4bccceaaccd0209cacfbad474bbd448348.tar.gz
nextcloud-server-bf84cd4bccceaaccd0209cacfbad474bbd448348.zip
Add darwin to if block
Otherwise it would fall into the 'win' else block because strpos($os, 'win') does also match 'darwin' what is the `php_uname` for OS X.
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 d5b7946feff..f925a4457f2 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");