#include <cstdio>
#include <filesystem>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
|
| using | liph::file_ptr = std::unique_ptr< FILE, decltype([](FILE *f) { if(f) fclose(f) |
| |
|
| bool | liph::read_file (const std::filesystem::path &pathname, std::string &output) |
| | read all from pathname, append to output More...
|
| |
| bool | liph::write_file (const std::filesystem::path &pathname, const std::string &str) |
| | write all to pathname More...
|
| |
| bool | liph::path_exists (const std::string &pathname) |
| | check path(file or directory) exists More...
|
| |
| std::vector< std::string > | liph::list_files (const std::string &pathname) |
| | list all files(including directories) in pathname recursively and sort by names More...
|
| |
| file_ptr | liph::fopen (const char *filename, char const *mode) |
| |
| bool | liph::mkdir (const std::filesystem::path &path) |
| |
| bool | liph::mkdirp (const std::filesystem::path &path) |
| |