Merge pull request #11565 from owncloud/fix-behaviourOnOSX
Add darwin to if block
This commit is contained in:
commit
63e0599218
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue