licornea_tools
filesystem.h
Go to the documentation of this file.
1 #ifndef LICORNEA_UTILITY_FILESYSTEM_H_
2 #define LICORNEA_UTILITY_FILESYSTEM_H_
3 
4 #include <string>
5 
6 namespace tlz {
7 
8 std::string filename_parent(const std::string& filename);
9 std::string filename_append(const std::string& a, const std::string& b);
10 std::string get_current_directory();
11 
12 bool file_exists(const std::string& filename);
13 
14 bool is_directory(const std::string& filename);
15 bool is_file(const std::string& filename);
16 std::size_t file_size(const std::string& filename);
17 
18 void make_directory(const std::string& dirname);
19 void make_parent_directories(const std::string& filename);
20 void delete_file(const std::string& filename);
21 
22 
23 }
24 
25 #endif
std::string filename_append(const std::string &a, const std::string &b)
bool file_exists(const std::string &filename)
bool is_file(const std::string &filename)
bool is_directory(const std::string &filename)
std::size_t file_size(const std::string &filename)
std::string get_current_directory()
void delete_file(const std::string &filename)
std::string filename_parent(const std::string &filename)
void make_directory(const std::string &dirname)
void make_parent_directories(const std::string &filename)