fix 0 byte filesize bug
This commit is contained in:
parent
3309431ac7
commit
9c01f3f4ab
|
@ -38,7 +38,7 @@ function do_filesize($path, $is_dir){
|
||||||
|
|
||||||
if($filesize === 0){
|
if($filesize === 0){
|
||||||
|
|
||||||
echo "0.00 B";
|
return "0.00 B";
|
||||||
}
|
}
|
||||||
|
|
||||||
$s = ["B", "KB", "MB", "GB", "TB", "PB"];
|
$s = ["B", "KB", "MB", "GB", "TB", "PB"];
|
||||||
|
|
Loading…
Reference in New Issue