YPC  0.2.0
filesystem.h
1 #pragma once
2 #include <string>
3 
4 namespace ypc {
5 std::string home_directory();
6 std::string current_directory();
7 std::string complete_path(const std::string &ph,
8  const std::string &base = current_directory());
9 
10 std::string dirname(const std::string &ph);
11 std::string join_path(const std::string &ph, const std::string &sub);
12 
13 bool is_portable_name(const std::string &name);
14 
15 bool is_dir_exists(const std::string &path);
16 bool is_file_exists(const std::string &path);
17 
18 void copy_directory(const std::string &from, const std::string &to);
19 
20 } // namespace ypc