Home | History | Annotate | Download | only in files

Lines Matching refs:to_path

239                  const FilePath& to_path,
242 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
250 const FilePath& to_path,
256 DCHECK(to_path.value().find('*') == std::string::npos);
264 FilePath real_to_path = to_path;
288 // We have to mimic windows behavior here. |to_path| may not exist yet,
289 // start the loop with |to_path|.
299 if (recursive && stat(to_path.value().c_str(), &to_path_stat) == 0 &&
314 // the suffix after from_path to to_path to create the target_path.
315 FilePath target_path(to_path);
836 bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path) {
838 // Windows compatibility: if to_path exists, from_path and to_path
841 if (CallStat(to_path.value().c_str(), &to_file_info) == 0) {
851 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
854 if (!CopyDirectory(from_path, to_path, true))
863 bool CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) {
869 int outfile = HANDLE_EINTR(creat(to_path.value().c_str(), 0666));