702
737
// We must make it sure it is directory and it exists
703
738
if (!DirCreate(dst.Path(), S_IRWXU, true)) {
704
739
logger.msg(WARNING, "Failed to create directory %s! Skipping job.", dst.Path());
714
743
const std::string srcpath = src.Path() + (src.Path().empty() || *src.Path().rbegin() != '/' ? "/" : "");
715
744
const std::string dstpath = dst.Path() + (dst.Path().empty() || *dst.Path().rbegin() != G_DIR_SEPARATOR ? G_DIR_SEPARATOR_S : "");