13 Set<std::pair<std::string, std::string>> *copy_set)
33 copy_set->add(std::make_pair(filepath_abs, filepath_cpy));
61 for (
const auto &
copy : copy_set) {
62 const char *
src =
copy.first.c_str();
63 const char *dst =
copy.second.c_str();
65 fprintf(stderr,
"Missing source file '%s', not copying\n",
src);
72 fprintf(stderr,
"Can't make directory for '%s', not copying\n", dst);
76 fprintf(stderr,
"Can't copy '%s' to '%s'\n",
src, 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 *file, const char *to) ATTR_NONNULL()
const char * BLI_path_basename(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_path_is_rel(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_make_existing_file(const char *name)
void BLI_path_normalize(const char *relabase, char *path) ATTR_NONNULL(2)
bool BLI_path_contains(const char *container_path, const char *containee_path) ATTR_WARN_UNUSED_RESULT
size_t BLI_path_join(char *__restrict dst, size_t dst_len, const char *path_first,...) ATTR_NONNULL(1
int BLI_path_cmp_normalized(const char *p1, const char *p2) ATTR_NONNULL(1
void BLI_path_rel(char *file, const char *relfile) ATTR_NONNULL()
bool BLI_path_abs(char *path, const char *basepath) ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
@ PATH_REFERENCE_RELATIVE
@ PATH_REFERENCE_ABSOLUTE
constexpr const char * c_str() const
SyclQueue void void * src
void path_reference_copy(const Set< std::pair< std::string, std::string >> ©_set)
std::string path_reference(StringRefNull filepath, StringRefNull base_src, StringRefNull base_dst, ePathReferenceMode mode, Set< std::pair< std::string, std::string >> *copy_set)
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)