4 * Created on: Mar 5, 2011
21 static std::string concat_paths(std::string path_start, std::string path_end);
22 static std::string concat_paths(const char *path_start, const char *path_end);
23 static bool is_subdirectory(const char *path, dirent *direntry);
24 static bool is_datafile(const char *path, dirent *direntry);
25 static std::vector<std::string> get_subdirectories(const std::string& path);
26 static std::vector<std::string> get_data_files(const std::string& path);
27 static std::string parse_directory_path(const char *file_name_with_path);
28 static bool mkdirs(const char *path);
30 * Creates file to given path by first checking whether
31 * the directories exist and have enough permissions.
33 static bool mkfile(const char *file_name_with_path, bool writable);
35 * Check whether file exist with specified access rights
37 static bool file_exist(const char *file_name_with_path, bool writable);
38 static bool dir_exist(const char *dir_name_with_path, bool writable);
39 static std::ofstream *open_for_writing(const char *path);
43 #endif /* FILEUTIL_HH_ */