Home | History | Annotate | Download | only in files

Lines Matching refs:to_path

116                  const FilePath& to_path,
119 // Try a simple move first. It will only succeed when |to_path| doesn't
121 if (::MoveFile(from_path.value().c_str(), to_path.value().c_str()))
124 // succeed when |to_path| does exist. When writing to a network share, we may
127 if (::ReplaceFile(to_path.value().c_str(), from_path.value().c_str(), NULL,
136 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path,
148 to_path.value().length() >= MAX_PATH) {
153 FilePath real_to_path = to_path;
189 if (recursive && DirectoryExists(to_path)) {
197 // the suffix after from_path to to_path to create the target_path.
198 FilePath target_path(to_path);
731 bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path) {
737 to_path.value().length() >= MAX_PATH) {
740 if (MoveFileEx(from_path.value().c_str(), to_path.value().c_str(),
752 // from_path and to_path are indeed in different volumes.
753 ret = internal::CopyAndDeleteDirectory(from_path, to_path);
765 bool CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) {
771 to_path.value().length() >= MAX_PATH) {
779 const wchar_t* dest = to_path.value().c_str();
795 const FilePath& to_path) {
797 if (CopyDirectory(from_path, to_path, true)) {
803 // If to_path exists previously then we have already overwritten