diff --git a/src/Components/Helper/HelperApi.php b/src/Components/Helper/HelperApi.php index 3b22445e..f4540de1 100644 --- a/src/Components/Helper/HelperApi.php +++ b/src/Components/Helper/HelperApi.php @@ -140,7 +140,7 @@ public static function getDiskTotalSpace($human = false) if (null === $space) { $dir = self::isWin() ? 'C:' : '/'; - if ( ! \is_readable($dir)) { + if ( ! @\is_readable($dir)) { $space = 0; return 0; @@ -167,7 +167,7 @@ public static function getDiskFreeSpace($human = false) if (null === $space) { $dir = self::isWin() ? 'C:' : '/'; - if ( ! \is_readable($dir)) { + if ( ! @\is_readable($dir)) { $space = 0; return 0;