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