首页文件与媒体Core\File 文件操作
Core\File 文件操作
moveTo / remove / exist 等移动删除

方法清单

方法签名说明
moveTomoveTo($nfpath,$nfname="")移动到新目录(可改名)
removeremove()删除文件
existexist()存在判断
checkPathcheckPath()路径有效性
典型用法
$file = new \Kuoqi\Core\File("{@ROOT}/Public/tmp/a.txt");
if($file->exist()){
    $file->moveTo("{@ROOT}/Public/archive", "2026_a.txt");
}
KuoqiPHP v1.05 · 离线静态文档 · 界面基于 KuoqiUI · 返回首页