Lines Matching refs:to_path
186 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument
191 if (CallStat(to_path.value().c_str(), &to_file_info) == 0) { in Move()
201 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in Move()
204 if (!CopyDirectory(from_path, to_path, true)) in Move()
211 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { in ReplaceFile() argument
213 return (rename(from_path.value().c_str(), to_path.value().c_str()) == 0); in ReplaceFile()
217 const FilePath& to_path, in CopyDirectory() argument
224 DCHECK(to_path.value().find('*') == std::string::npos); in CopyDirectory()
234 FilePath real_to_path = to_path; in CopyDirectory()
271 if (recursive && stat(to_path.value().c_str(), &to_path_stat) == 0 && in CopyDirectory()
291 const FilePath target_path = to_path.Append(suffix); in CopyDirectory()
850 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument
856 int outfile = HANDLE_EINTR(creat(to_path.value().c_str(), 0666)); in CopyFile()