Ardour  9.0-pre0-582-g084a23a80d
file_utils.h File Reference
#include <string>
#include <vector>
#include <glibmm/pattern.h>
#include "pbd/libpbd_visibility.h"
#include "pbd/search_path.h"
Include dependency graph for file_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 PBD
 

Functions

void PBD::get_paths (std::vector< std::string > &result, const Searchpath &paths, bool files_only=true, bool recurse=false)
 
void PBD::get_files (std::vector< std::string > &result, const Searchpath &paths)
 
void PBD::find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
 
void PBD::find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const std::string &pattern)
 
bool PBD::find_file (const Searchpath &search_path, const std::string &filename, std::string &result)
 
void PBD::find_files_matching_regex (std::vector< std::string > &results, const Searchpath &paths, const std::string &regexp, bool recurse=false)
 
void PBD::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)
 
void PBD::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)
 
bool PBD::copy_file (const std::string &from_path, const std::string &to_path)
 
void PBD::copy_files (const std::string &from_path, const std::string &to_dir)
 
void PBD::copy_recurse (const std::string &from_path, const std::string &to_dir, bool preseve_timestamps=false)
 
bool PBD::touch_file (const std::string &path)
 
bool PBD::hard_link (const std::string &existing_file, const std::string &new_path)
 
std::string PBD::get_absolute_path (const std::string &)
 
std::string PBD::canonical_path (const std::string &path)
 
std::string PBD::get_suffix (const std::string &)
 
bool PBD::path_is_within (const std::string &, std::string)
 
bool PBD::equivalent_paths (const std::string &p1, const std::string &p2)
 
bool PBD::exists_and_writable (const std::string &p)
 
int PBD::clear_directory (const std::string &dir, size_t *size=0, std::vector< std::string > *removed_files=0)
 
void PBD::remove_directory (const std::string &dir)
 
std::string PBD::tmp_writable_directory (const char *domain, const std::string &prefix)
 
int PBD::toggle_file_existence (std::string const &path)