Lines Matching refs:to_path
178 bool Move(const FilePath& from_path, const FilePath& to_path) {
184 to_path.value().length() >= MAX_PATH) {
187 if (MoveFileEx(from_path.value().c_str(), to_path.value().c_str(),
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) {
217 to_path.value().c_str(),
228 return ::ReplaceFile(to_path.value().c_str(),
233 bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
239 to_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,
253 to_path.value().length() >= MAX_PATH) {
265 wcscpy(double_terminated_path_to, to_path.value().c_str());
279 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path,
284 return ShellCopy(from_path, to_path, true);
291 if (!PathExists(to_path)) {
295 CreateDirectory(to_path);
297 ShellCopy(from_path, to_path, false);
301 return ShellCopy(directory, to_path, false);
305 const FilePath& to_path) {
307 if (CopyDirectory(from_path, to_path, true)) {
313 // If to_path exists previously then we have already overwritten