Lines Matching defs:to_path
186 bool Move(const FilePath& from_path, const FilePath& to_path) {
188 // Windows compatibility: if to_path exists, from_path and to_path
191 if (CallStat(to_path.value().c_str(), &to_file_info) == 0) {
201 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
204 if (!CopyDirectory(from_path, to_path, true))
211 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) {
213 return (rename(from_path.value().c_str(), to_path.value().c_str()) == 0);
217 const FilePath& to_path,
224 DCHECK(to_path.value().find('*') == std::string::npos);
234 FilePath real_to_path = to_path;
260 // We have to mimic windows behavior here. |to_path| may not exist yet,
261 // start the loop with |to_path|.
271 if (recursive && stat(to_path.value().c_str(), &to_path_stat) == 0 &&
284 // the suffix after from_path onto to_path to create the target_path.
291 const FilePath target_path = to_path.Append(suffix);
850 bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
856 int outfile = HANDLE_EINTR(creat(to_path.value().c_str(), 0666));