Fix not showing filesize with spaces

This commit is contained in:
Clortox 2021-01-04 15:42:39 -05:00
parent 38ad2a830a
commit d2c6d8af02
2 changed files with 2 additions and 3 deletions

View File

@ -4,12 +4,12 @@
error_reporting(E_ALL);
function foldersize($path){
$sizestr = shell_exec('du -sh ' . "$path" . '/ | awk \'{print $1} \'');
$sizestr = shell_exec('du -sh "' . $path . '/" | awk \'{print $1} \'');
return $sizestr;
}
function listingsize($path){
$sizestr = shell_exec('du -h ' . "$path" . ' | awk \'{print $1}\'');
$sizestr = shell_exec('du -h "' . $path . '" | awk \'{print $1}\'');
return $sizestr;
}
?>

View File

@ -84,7 +84,6 @@
<tbody>
<?php
foreach($elements as $i=>$currentfile){
echo "<tr>";
echo "<td>" . $currentfile . "</td>";
$fulldir = $dir_dirs[$dir_index] . $path . "/" . $currentfile;