Merge pull request #11565 from owncloud/fix-behaviourOnOSX

Add darwin to if block
This commit is contained in:
Lukas Reschke 2014-10-15 21:12:50 +02:00
commit 63e0599218
1 changed files with 1 additions and 1 deletions

View File

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