20 #ifndef PBD_FILE_UTILS_INCLUDED
21 #define PBD_FILE_UTILS_INCLUDED
26 #include <glibmm/pattern.h>
45 get_paths (std::vector<std::string>& result,
46 const Searchpath& paths,
47 bool files_only =
true,
48 bool recurse =
false);
58 get_files (std::vector<std::string>& result,
59 const Searchpath& paths);
71 const Searchpath& paths,
72 const Glib::PatternSpec& pattern);
89 const Searchpath& paths,
90 const std::string& pattern);
104 find_file (
const Searchpath& search_path,
105 const std::string& filename,
106 std::string& result);
119 const Searchpath& paths,
120 const std::string& regexp,
121 bool recurse =
false);
137 const Searchpath& paths,
138 bool (*filter)(
const std::string &,
void *),
141 bool return_fullpath,
142 bool recurse =
false);
158 const Searchpath& paths,
159 bool (*filter)(
const std::string &,
void *),
162 bool return_fullpath,
163 bool recurse =
false);
226 std::vector<std::string>* removed_files = 0);
void find_paths_matching_filter(vector< string > &result, const Searchpath &paths, bool(*filter)(const string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse)
void remove_directory(const std::string &dir)
bool path_is_within(std::string const &haystack, std::string needle)
void find_files_matching_regex(vector< string > &result, const Searchpath &paths, const std::string ®exp, bool recurse)
std::string get_suffix(const std::string &p)
bool find_file(const Searchpath &search_path, const string &filename, std::string &result)
int toggle_file_existence(string const &path)
int clear_directory(const string &dir, size_t *size, vector< string > *paths)
void copy_recurse(const std::string &from_path, const std::string &to_dir)
bool copy_file(const std::string &from_path, const std::string &to_path)
void find_files_matching_pattern(vector< string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
string tmp_writable_directory(const char *domain, const string &prefix)
bool exists_and_writable(const std::string &p)
std::string get_absolute_path(const std::string &p)
void copy_files(const std::string &from_path, const std::string &to_dir)
void get_paths(vector< string > &result, const Searchpath &paths, bool files_only, bool recurse)
void get_files(vector< string > &result, const Searchpath &paths)
bool equivalent_paths(const std::string &a, const std::string &b)
void find_files_matching_filter(vector< string > &result, const Searchpath &paths, bool(*filter)(const string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse)