Support: ignore disk_free_space if the function is unavailable (#1970)
This commit is contained in:
parent
739776a754
commit
e0a8f961ba
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ class BookmarkIO
|
|||
*/
|
||||
public function checkDiskSpace(string $data): bool
|
||||
{
|
||||
if (function_exists('disk_free_space') === false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return disk_free_space(dirname($this->datastore)) > (strlen($data) + 1024 * 500);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue