|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
类 | |
| class | directory_entry |
| class | directory_iterator |
| class | file_status |
| class | filesystem_error |
| class | path |
| struct | space_info |
类型定义 | |
| using | string_type = std::string |
| using | char_type = char |
枚举 | |
| enum class | file_type { none , not_found , regular , directory , symlink , unknown } |
函数 | |
| bool | exists (const path &p) |
| uintmax_t | file_size (const path &p) |
| file_status | status (const path &p) noexcept |
| bool | create_directory (const path &p) noexcept |
| bool | create_directories (const path &p) noexcept |
| bool | remove (const path &p) noexcept |
| uintmax_t | remove_all (const path &p) noexcept |
| bool | copy_file (const path &from, const path &to) noexcept |
| bool | rename (const path &old_p, const path &new_p) noexcept |
| space_info | space (const path &p) |
| std::time_t | last_write_time (const path &p) |
| path | current_path () |
| path | current_path (std::error_code &ec) noexcept |
| void | current_path (const path &new_path) |
| void | current_path (const path &new_path, std::error_code &ec) noexcept |
| A_ALWAYS_INLINE bool | is_regular_file (file_status s) noexcept |
| A_ALWAYS_INLINE bool | is_directory (file_status s) noexcept |
| A_ALWAYS_INLINE bool | is_directory (const path &p) noexcept |
| A_ALWAYS_INLINE bool | is_regular_file (const path &p) noexcept |
| directory_iterator | begin (directory_iterator iter) noexcept |
| directory_iterator | end (const directory_iterator &) noexcept |
| bool | operator== (const path &left, const path &right) |
| bool | operator!= (const path &left, const path &right) |
简化的文件系统操作类
本类提供了简化的文件系统操作接口,与c++17标准库filesystem的api规范保持一致。 主要功能包括路径操作、文件属性查询、目录遍历等。