Lines Matching refs:from_path
178 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument
183 if (from_path.value().length() >= MAX_PATH || in Move()
187 if (MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), in Move()
196 if (DirectoryExists(from_path)) { in Move()
200 ret = CopyAndDeleteDirectory(from_path, to_path); in Move()
212 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { in ReplaceFile() argument
229 from_path.value().c_str(), NULL, in ReplaceFile()
233 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument
238 if (from_path.value().length() >= MAX_PATH || in CopyFile()
242 return (::CopyFile(from_path.value().c_str(), to_path.value().c_str(), in CopyFile()
246 bool ShellCopy(const FilePath& from_path, const FilePath& to_path, in ShellCopy() argument
252 if (from_path.value().length() >= MAX_PATH || in ShellCopy()
263 wcscpy(double_terminated_path_from, from_path.value().c_str()); in ShellCopy()
279 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path, in CopyDirectory() argument
284 return ShellCopy(from_path, to_path, true); in CopyDirectory()
287 DCHECK(DirectoryExists(from_path)); in CopyDirectory()
297 ShellCopy(from_path, to_path, false); in CopyDirectory()
300 FilePath directory = from_path.Append(L"*.*"); in CopyDirectory()
304 bool CopyAndDeleteDirectory(const FilePath& from_path, in CopyAndDeleteDirectory() argument
307 if (CopyDirectory(from_path, to_path, true)) { in CopyAndDeleteDirectory()
308 if (Delete(from_path, true)) { in CopyAndDeleteDirectory()