ardour
Namespaces | Functions
file_utils.h File Reference
#include <string>
#include <vector>
#include <glibmm/pattern.h>
#include "pbd/libpbd_visibility.h"
#include "pbd/search_path.h"

Go to the source code of this file.

Namespaces

 PBD
 

Functions

LIBPBD_API void PBD::get_paths (std::vector< std::string > &result, const Searchpath &paths, bool files_only=true, bool recurse=false)
 
LIBPBD_API void PBD::get_files (std::vector< std::string > &result, const Searchpath &paths)
 
LIBPBD_API void PBD::find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
 
LIBPBD_API void PBD::find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const std::string &pattern)
 
LIBPBD_API bool PBD::find_file (const Searchpath &search_path, const std::string &filename, std::string &result)
 
LIBPBD_API void PBD::find_files_matching_regex (std::vector< std::string > &results, const Searchpath &paths, const std::string &regexp, bool recurse=false)
 
LIBPBD_API 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)
 
LIBPBD_API 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)
 
std::string PBD::get_absolute_path (const std::string &p)
 
std::string PBD::get_suffix (const std::string &p)
 
bool PBD::path_is_within (std::string const &haystack, std::string needle)
 
bool PBD::equivalent_paths (const std::string &a, const std::string &b)
 
bool PBD::exists_and_writable (const std::string &p)
 
LIBPBD_API 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)
 
LIBPBD_API std::string PBD::tmp_writable_directory (const char *domain, const std::string &prefix)
 
LIBPBD_API int PBD::toggle_file_existence (std::string const &)