目录
The Filesystem library provides facilities for performing operations on file systems and their components, such as paths, regular files, and directories.
Filesystem库提供了对文件系统及其组件(如路径、常规文件和目录)执行操作的工具。
File types | |
checks whether the given path refers to block device | |
checks whether the given path refers to a character device | |
checks whether the given path refers to a directory | |
checks whether the given path refers to an empty file or directory | |
checks whether the given path refers to a named pipe | |
checks whether the argument refers to an other file | |
checks whether the argument refers to a regular file | |
checks whether the argument refers to a named IPC socket | |
checks whether the argument refers to a symbolic link | |
checks whether file status is known |
sys::path src_dir("F:\\download");//或者const string src_dir = "F:\\download"; setdir_set; for (sys::directory_iterator end, ite(src_dir); ite != end; ++ite) { if(!is_directory(ite->path())) dir_set.insert(ite->path().filename().string()); };