Lines Matching defs:from
230 fs::copy(const path& from, const path& to, copy_options options)
233 copy(from, to, options, ec);
235 _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot copy", from, to, ec));
316 do_copy_file(const fs::path& from, const fs::path& to,
348 if (::stat(from.c_str(), &st2))
396 CloseFD in = { ::open(from.c_str(), O_RDONLY) };
467 fs::copy(const path& from, const path& to, copy_options options,
479 ? ::lstat(from.c_str(), &from_st)
480 : ::stat(from.c_str(), &from_st))
522 copy_symlink(from, to, ec);
533 create_symlink(from, to, ec);
535 create_hard_link(from, to, ec);
537 do_copy_file(from, to / from.filename(), options, &from_st, 0, ec);
541 do_copy_file(from, to, options, &from_st, ptr, ec);
548 if (!create_directory(to, from, ec))
553 for (const directory_entry& x : directory_iterator(from))
560 fs::copy_file(const path& from, const path& to, copy_options option)
563 bool result = copy_file(from, to, option, ec);
565 _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot copy file", from, to,
571 fs::copy_file(const path& from, const path& to, copy_options option,
575 return do_copy_file(from, to, option, nullptr, nullptr, ec);
1182 fs::rename(const path& from, const path& to)
1185 rename(from, to, ec);
1187 _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot rename", from, to, ec));
1191 fs::rename(const path& from, const path& to, error_code& ec) noexcept
1193 if (::rename(from.c_str(), to.c_str()))