Skip to content
Snippets Groups Projects
Commit b83d00f8 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #10249 from mroi/patch-1

file size on non-(Linux/BSD/Windows)-installations
parents c42ce200 cde1a924
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment