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
c5427da7
Commit
c5427da7
authored
Nov 27, 2014
by
Joas Schilling
Browse files
Check return of disk_free_space before returning it
Local changes copied from
ed835973
and
25370fcb
parent
1062f4fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/files/storage/mappedlocal.php
View file @
c5427da7
...
@@ -292,7 +292,11 @@ class MappedLocal extends \OC\Files\Storage\Common {
...
@@ -292,7 +292,11 @@ class MappedLocal extends \OC\Files\Storage\Common {
}
}
public
function
free_space
(
$path
)
{
public
function
free_space
(
$path
)
{
return
@
disk_free_space
(
$this
->
getSourcePath
(
$path
));
$space
=
@
disk_free_space
(
$this
->
getSourcePath
(
$path
));
if
(
$space
===
false
||
is_null
(
$space
))
{
return
\
OCP\Files\FileInfo
::
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