mirror of
https://github.com/Clortox/SimpleFileRepository.git
synced 2025-01-09 10:28:00 +00:00
Fix not showing filesize with spaces
This commit is contained in:
parent
38ad2a830a
commit
d2c6d8af02
@ -4,12 +4,12 @@
|
|||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
function foldersize($path){
|
function foldersize($path){
|
||||||
$sizestr = shell_exec('du -sh ' . "$path" . '/ | awk \'{print $1} \'');
|
$sizestr = shell_exec('du -sh "' . $path . '/" | awk \'{print $1} \'');
|
||||||
return $sizestr;
|
return $sizestr;
|
||||||
}
|
}
|
||||||
|
|
||||||
function listingsize($path){
|
function listingsize($path){
|
||||||
$sizestr = shell_exec('du -h ' . "$path" . ' | awk \'{print $1}\'');
|
$sizestr = shell_exec('du -h "' . $path . '" | awk \'{print $1}\'');
|
||||||
return $sizestr;
|
return $sizestr;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -84,7 +84,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach($elements as $i=>$currentfile){
|
foreach($elements as $i=>$currentfile){
|
||||||
|
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>" . $currentfile . "</td>";
|
echo "<td>" . $currentfile . "</td>";
|
||||||
$fulldir = $dir_dirs[$dir_index] . $path . "/" . $currentfile;
|
$fulldir = $dir_dirs[$dir_index] . $path . "/" . $currentfile;
|
||||||
|
Loading…
Reference in New Issue
Block a user