bool | directory_exists static | Check if directory exists. |
bool | file_exists static | Check if file exists. |
bool | path_exists static | Check if path exists (file or directory) |
Result< void > | create_directory static | Create directory (and parent directories if needed) |
Result< void > | copy_directory static | Copy directory (recursive) Uses hard links when possible for efficiency (like Typesense) |
Result< void > | move_path static | Move/rename path (works for files and directories) |
Result< void > | delete_path static | Delete path (file or directory) |
Result< size_t > | file_size static | Get file size in bytes. |
Result< std::vector< std::string > > | list_files static | List files in directory. |
Result< std::string > | read_file static | Read entire file into string. |
Result< std::vector< std::string > > | read_lines static | Read file into vector of lines. |
Result< void > | write_file static | Write string to file (overwrites existing) |
Result< void > | append_file static | Append string to file. |
std::string | get_extension static | Get file extension (without dot) |
std::string | get_filename static | Get filename without directory. |
std::string | get_directory static | Get directory path. |
Result< std::string > | absolute_path static | Get absolute path. |
Result< std::string > | current_directory static | Get current working directory. |