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
ed835973
Commit
ed835973
authored
Mar 14, 2013
by
Robin Appelman
Browse files
Return unknown freespace if the free_space call failed
Fixes #2312
parent
abe408e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/files/storage/local.php
View file @
ed835973
...
@@ -218,7 +218,11 @@ class Local extends \OC\Files\Storage\Common{
...
@@ -218,7 +218,11 @@ class Local extends \OC\Files\Storage\Common{
}
}
public
function
free_space
(
$path
)
{
public
function
free_space
(
$path
)
{
return
@
disk_free_space
(
$this
->
datadir
.
$path
);
$space
=
@
disk_free_space
(
$this
->
datadir
.
$path
);
if
(
$space
===
false
){
return
\
OC\Files\FREE_SPACE_UNKNOWN
;
}
return
$space
;
}
}
public
function
search
(
$query
)
{
public
function
search
(
$query
)
{
...
...
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