通过调用 env::current_dir ,获得当前工作目录,然后针对 fs::read_dir 中的每个条目,提取 DirEntry::path ,并通过 fs::Metadata 得到元信息。
確定! 回上一頁