22 Set<std::pair<std::string, std::string>> *copy_set)
41 copy_set->add(std::make_pair(filepath_abs, filepath_cpy));
42 STRNCPY(filepath_abs, filepath_cpy);
51 const bool walk_up =
true;
69 for (
const auto © : copy_set) {
70 const char *src = copy.first.c_str();
71 const char *dst = copy.second.c_str();
73 CLOG_WARN(&
LOG,
"Missing source file '%s', not copying", src);
80 CLOG_WARN(&
LOG,
"Can't make directory for '%s', not copying", dst);
File and directory operations.
#define BLI_path_join(...)
#define CLOG_WARN(clg_ref,...)
#define BLI_assert_msg(a, msg)
constexpr const char * c_str() const
std::string path_reference(StringRefNull filepath, StringRefNull base_src, StringRefNull base_dst, ePathReferenceMode mode, Set< std::pair< std::string, std::string > > *copy_set)
void path_reference_copy(const Set< std::pair< std::string, std::string > > ©_set)
char * STRNCPY(char(&dst)[N], const char *src)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
bool BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BLI_path_relative_to(const char *path, const char *base_dir, bool walk_up, char *r_path_relative, size_t r_path_relative_maxncpy) ATTR_NONNULL(1
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
int BLI_path_cmp_normalized(const char *p1, const char *p2) ATTR_NONNULL(1
int BLI_path_normalize(char *path) ATTR_NONNULL(1)
int BLI_copy(const char *path_src, const char *path_dst) ATTR_NONNULL()
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool BLI_path_contains(const char *container_path, const char *containee_path) ATTR_NONNULL(1
bool BLI_file_ensure_parent_dir_exists(const char *filepath) ATTR_NONNULL(1)
@ PATH_REFERENCE_RELATIVE
@ PATH_REFERENCE_ABSOLUTE