21 #ifndef PBD_FILE_UTILS_INCLUDED
22 #define PBD_FILE_UTILS_INCLUDED
27 #include <glibmm/pattern.h>
32 #if defined(COMPILER_MSVC) && defined(WAF_BUILD)
34 typedef SSIZE_T ssize_t;
53 bool files_only =
true,
54 bool recurse =
false);
77 const Glib::PatternSpec& pattern);
95 const std::string& pattern);
110 const std::string& filename,
111 std::string& result);
125 const std::string& regexp,
126 bool recurse =
false);
143 bool (*filter)(
const std::string &,
void *),
146 bool return_fullpath,
147 bool recurse =
false);
164 bool (*filter)(
const std::string &,
void *),
167 bool return_fullpath,
168 bool recurse =
false);
187 LIBPBD_API void copy_recurse(
const std::string & from_path,
const std::string & to_dir,
bool preseve_timestamps =
false);
250 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 &)