19 Set<std::pair<std::string, std::string>> *copy_set)
38 copy_set->add(std::make_pair(filepath_abs, filepath_cpy));
39 STRNCPY(filepath_abs, filepath_cpy);
49 STRNCPY(rel_path, filepath_abs);
66 for (
const auto &
copy : copy_set) {
67 const char *src =
copy.first.c_str();
68 const char *dst =
copy.second.c_str();
70 CLOG_WARN(&
LOG,
"Missing source file '%s', not copying", src);
77 CLOG_WARN(&
LOG,
"Can't make directory for '%s', not copying", dst);
#define BLI_assert_msg(a, msg)
File and directory operations.
int BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_copy(const char *path_src, const char *path_dst) ATTR_NONNULL()
bool BLI_file_ensure_parent_dir_exists(const char *filepath) ATTR_NONNULL(1)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
int BLI_path_normalize(char *path) ATTR_NONNULL(1)
bool BLI_path_contains(const char *container_path, const char *containee_path) ATTR_NONNULL(1
#define BLI_path_join(...)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
int BLI_path_cmp_normalized(const char *p1, const char *p2) ATTR_NONNULL(1
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
char * STRNCPY(char(&dst)[N], const char *src)
#define CLOG_WARN(clg_ref,...)
@ PATH_REFERENCE_RELATIVE
@ PATH_REFERENCE_ABSOLUTE
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)
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)