| '.$fullPath.' | '.substr(sprintf('%o', fileperms($fullPath)), -4).' | '.date("Y-m-d H:i:s", filectime($fullPath)).' | '.date("Y-m-d H:i:s", filemtime($fullPath)).' | '.date("Y-m-d H:i:s", fileatime($fullPath)).' | 文件夹 | |
';
}
}
foreach(hardScandir($dir) as $value){
$fullPath = str_replace('//', '/', $dir."/".$value);
if($value != '.' && $value != '..' && !is_dir($fullPath)){
$content .= ' | '.$fullPath.' | '.substr(sprintf('%o', fileperms($fullPath)), -4).' | '.date("Y-m-d H:i:s", filectime($fullPath)).' | '.date("Y-m-d H:i:s", filemtime($fullPath)).' | '.date("Y-m-d H:i:s", fileatime($fullPath)).' | '.round(filesize($fullPath) / 1024, 2).' Kb | 删除 |
';
}
}
$content .= '