application/manage/logic/RuntimeLogic.php
public static function getRuntime($path = '/')
    {
        // 真实路径
        $path_runtime = realpath(RUNTIME_PATH);
        $path_list = realpath(RUNTIME_PATH . $path);
        
        // 判断越界
        if (strpos($path_list, $path_runtime) === false) {
            return [];
        }
        
        // 列出文件
        $list = FileManager::listDir($path_list);
        foreach ($list as &$vo) {
            $vo['file_str'] = self::fileDir($vo['file'], $path_runtime);
            $vo['file'] = str_replace([
                $path_runtime,
                '\\'
            ], [
                '',
                '/'
            ], realpath($vo['file']));
            $vo['size'] = Common::formatBytes($vo['size']);
        }
        
        return $list;
    }
public static function getRuntime($path = '/')
    {
        // 真实路径
        $path_runtime = realpath(RUNTIME_PATH);
        $path_list = realpath(RUNTIME_PATH . $path);
        
        // 判断越界
        if (strpos($path_list, $path_runtime) === false) {
            return [];
        }
        
        // 列出文件
        $list = FileManager::listDir($path_list);
        foreach ($list as &$vo) {
            $vo['file_str'] = self::fileDir($vo['file'], $path_runtime);
            $vo['file'] = str_replace([
                $path_runtime,
                '\\'
            ], [
                '',
                '/'
            ], realpath($vo['file']));
            $vo['size'] = Common::formatBytes($vo['size']);
        }
        
        return $list;
    }
缓存文件

@param string $path
@return array