21 #ifndef PBD_FILE_UTILS_INCLUDED
22 #define PBD_FILE_UTILS_INCLUDED
27 #include <glibmm/pattern.h>
48 bool files_only =
true,
49 bool recurse =
false);
72 const Glib::PatternSpec& pattern);
90 const std::string& pattern);
105 const std::string& filename,
106 std::string& result);
120 const std::string& regexp,
121 bool recurse =
false);
138 bool (*filter)(
const std::string &,
void *),
141 bool return_fullpath,
142 bool recurse =
false);
159 bool (*filter)(
const std::string &,
void *),
162 bool return_fullpath,
163 bool recurse =
false);
182 LIBPBD_API void copy_recurse(
const std::string & from_path,
const std::string & to_dir,
bool preseve_timestamps =
false);
245 std::vector<std::string>* removed_files = 0);
void find_files_matching_filter(std::vector< std::string > &results, const Searchpath &paths, bool(*filter)(const std::string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse=false)
void copy_files(const std::string &from_path, const std::string &to_dir)
bool path_is_within(const std::string &, std::string)
bool copy_file(const std::string &from_path, const std::string &to_path)
bool equivalent_paths(const std::string &p1, const std::string &p2)
std::string tmp_writable_directory(const char *domain, const std::string &prefix)
void get_files(std::vector< std::string > &result, const Searchpath &paths)
void find_files_matching_regex(std::vector< std::string > &results, const Searchpath &paths, const std::string ®exp, bool recurse=false)
std::string canonical_path(const std::string &path)
int clear_directory(const std::string &dir, size_t *size=0, std::vector< std::string > *removed_files=0)
bool hard_link(const std::string &existing_file, const std::string &new_path)
bool touch_file(const std::string &path)
void find_paths_matching_filter(std::vector< std::string > &results, const Searchpath &paths, bool(*filter)(const std::string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse=false)
bool exists_and_writable(const std::string &p)
void copy_recurse(const std::string &from_path, const std::string &to_dir, bool preseve_timestamps=false)
std::string get_suffix(const std::string &)
void get_paths(std::vector< std::string > &result, const Searchpath &paths, bool files_only=true, bool recurse=false)
void find_files_matching_pattern(std::vector< std::string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
void remove_directory(const std::string &dir)
int toggle_file_existence(std::string const &path)
bool find_file(const Searchpath &search_path, const std::string &filename, std::string &result)
std::string get_absolute_path(const std::string &)