Merge pull request #10249 from mroi/patch-1
file size on non-(Linux/BSD/Windows)-installations
This commit is contained in:
commit
b83d00f847
|
@ -147,7 +147,7 @@ class LargeFileHelper {
|
|||
if (\OC_Helper::is_function_enabled('exec')) {
|
||||
$os = strtolower(php_uname('s'));
|
||||
$arg = escapeshellarg($filename);
|
||||
$result = '';
|
||||
$result = null;
|
||||
if (strpos($os, 'linux') !== false) {
|
||||
$result = $this->exec("stat -c %s $arg");
|
||||
} else if (strpos($os, 'bsd') !== false) {
|
||||
|
|
Loading…
Reference in New Issue