Searched refs:to_path (Results 1 - 4 of 4) sorted by relevance
/third_party/littlefs/scripts/ |
H A D | changeprefix.py | 52 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 D | file_util_posix.cc | 208 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 D | file_util.h | 77 // Renames file |from_path| to |to_path|. Both paths must be on the same 84 const FilePath& to_path,
|
H A D | file_util_win.cc | 223 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