Lines Matching refs:to_path
181 const FilePath& to_path, in DoCopyDirectory() argument
188 DCHECK(to_path.value().find('*') == std::string::npos); in DoCopyDirectory()
196 FilePath real_to_path = to_path; in DoCopyDirectory()
225 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory()
239 FilePath target_path(to_path); in DoCopyDirectory()
385 const FilePath& to_path, in ReplaceFile() argument
388 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile()
396 const FilePath& to_path, in CopyDirectory() argument
398 return DoCopyDirectory(from_path, to_path, recursive, false); in CopyDirectory()
402 const FilePath& to_path, in CopyDirectoryExcl() argument
404 return DoCopyDirectory(from_path, to_path, recursive, true); in CopyDirectoryExcl()
1008 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument
1023 File outfile(to_path, File::FLAG_WRITE | File::FLAG_CREATE_ALWAYS); in CopyFile()
1035 bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path) { in MoveUnsafe() argument
1040 if (CallStat(to_path.value().c_str(), &to_file_info) == 0) { in MoveUnsafe()
1048 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in MoveUnsafe()
1051 if (!CopyDirectory(from_path, to_path, true)) in MoveUnsafe()