Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
25370fcb
Commit
25370fcb
authored
Jan 02, 2014
by
Robin Appelman
Browse files
Return SPACE_UNKNOWN if disk_free_space is disabled when getting the free space on a local storage
parent
095f9b8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/files/storage/local.php
View file @
25370fcb
...
...
@@ -256,7 +256,7 @@ if (\OC_Util::runningOnWindows()) {
public
function
free_space
(
$path
)
{
$space
=
@
disk_free_space
(
$this
->
datadir
.
$path
);
if
(
$space
===
false
)
{
if
(
$space
===
false
||
is_null
(
$space
)
)
{
return
\
OC\Files\SPACE_UNKNOWN
;
}
return
$space
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment