Home
last modified time | relevance | path

Searched refs:to_path (Results 1 - 4 of 4) sorted by relevance

/third_party/littlefs/scripts/
H A Dchangeprefix.py52 def changefile(from_prefix, to_prefix, from_path, to_path, *,
58 if from_path == to_path and to_path != '-':
60 to_path = to_path_temp.name
65 with openio(to_path, 'w') as to_f:
72 if from_path != '-' and to_path != '-':
73 shutil.copystat(from_path, to_path)
76 os.rename(to_path, from_path)
82 '%s -> %s' % (from_path, to_path) if not to_path_temp else from_path,
106 to_path
[all...]
/third_party/gn/src/base/files/
H A Dfile_util_posix.cc208 const FilePath& to_path, in ReplaceFile()
210 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile()
684 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument
690 File outfile(to_path, File::FLAG_WRITE | File::FLAG_CREATE_ALWAYS); in CopyFile()
207 ReplaceFile(const FilePath& from_path, const FilePath& to_path, File::Error* error) ReplaceFile() argument
H A Dfile_util.h77 // Renames file |from_path| to |to_path|. Both paths must be on the same
84 const FilePath& to_path,
H A Dfile_util_win.cc223 const FilePath& to_path, in RandomDataToGUIDString()
225 // Try a simple move first. It will only succeed when |to_path| doesn't in RandomDataToGUIDString()
227 if (::MoveFile(ToWCharT(&from_path.value()), ToWCharT(&to_path.value()))) in RandomDataToGUIDString()
232 // succeed when |to_path| does exist. When writing to a network share, we may in RandomDataToGUIDString()
235 if (::ReplaceFile(ToWCharT(&to_path.value()), ToWCharT(&from_path.value()), in RandomDataToGUIDString()
240 // |to_path| does not exist. In this case, the more relevant error comes in RandomDataToGUIDString()
222 ReplaceFile(const FilePath& from_path, const FilePath& to_path, File::Error* error) RandomDataToGUIDString() argument

Completed in 4 milliseconds