/external/crosvm/tools/contrib/ |
D | cargo_refactor.py | 57 def update_path_deps(toml: Path, from_path: Path, to_path: Path): 61 new_dep = os.path.relpath((from_path / old_dep).resolve(), to_path) 66 def move_crate(from_path: Path, to_path: Path): 69 if to_path.exists(): 70 shutil.rmtree(to_path) 71 shutil.copytree(str(from_path), str(to_path)) 72 update_path_deps(to_path / "Cargo.toml", from_path, to_path) 73 replace_in_files("**/*/Cargo.toml", [(str(from_path), str(to_path))]) 74 replace_in_file(Path("Cargo.toml"), str(from_path), str(to_path))
|
/external/cronet/tot/third_party/apache-portable-runtime/src/file_io/unix/ |
D | copy.c | 21 const char *to_path, in apr_file_transfer_contents() argument 49 status = apr_file_open(&d, to_path, flags, perms, pool); in apr_file_transfer_contents() 99 const char *to_path, in apr_file_copy() argument 103 return apr_file_transfer_contents(from_path, to_path, in apr_file_copy() 110 const char *to_path, in apr_file_append() argument 114 return apr_file_transfer_contents(from_path, to_path, in apr_file_append()
|
/external/cronet/stable/third_party/apache-portable-runtime/src/file_io/unix/ |
D | copy.c | 21 const char *to_path, in apr_file_transfer_contents() argument 49 status = apr_file_open(&d, to_path, flags, perms, pool); in apr_file_transfer_contents() 99 const char *to_path, in apr_file_copy() argument 103 return apr_file_transfer_contents(from_path, to_path, in apr_file_copy() 110 const char *to_path, in apr_file_append() argument 114 return apr_file_transfer_contents(from_path, to_path, in apr_file_append()
|
/external/cronet/stable/net/disk_cache/ |
D | cache_util_posix.cc | 15 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 23 if (!base::CreateDirectory(to_path)) { in MoveCache() 31 base::FilePath destination = to_path.Append(name.BaseName()); in MoveCache() 39 return base::Move(from_path, to_path); in MoveCache()
|
D | cache_util_win.cc | 16 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 19 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { in MoveCache()
|
/external/cronet/tot/net/disk_cache/ |
D | cache_util_posix.cc | 15 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 23 if (!base::CreateDirectory(to_path)) { in MoveCache() 31 base::FilePath destination = to_path.Append(name.BaseName()); in MoveCache() 39 return base::Move(from_path, to_path); in MoveCache()
|
D | cache_util_win.cc | 16 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 19 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { in MoveCache()
|
/external/chromium-crossbench/crossbench/plt/ |
D | posix.py | 216 to_path: pth.AnyPathLike) -> pth.AnyPath: 218 return super().copy_dir(from_path, to_path) 220 to_path = self.path(to_path) 223 self.mkdir(to_path.parent, parents=True, exist_ok=True) 224 self.sh("cp", "-R", from_path, to_path) 225 return to_path 228 to_path: pth.AnyPathLike) -> pth.AnyPath: 230 return super().copy_file(from_path, to_path) 232 to_path = self.path(to_path) 235 self.mkdir(to_path.parent, parents=True, exist_ok=True) [all …]
|
D | base.py | 466 to_path: pth.LocalPath) -> pth.LocalPath: 471 return self.local_path(self.copy_file(from_path, to_path)) 473 def push(self, from_path: pth.LocalPath, to_path: pth.AnyPath) -> pth.AnyPath: 478 return self.copy_file(from_path, to_path) 480 def copy(self, from_path: pth.AnyPath, to_path: pth.AnyPath) -> pth.AnyPath: 485 return self.copy_dir(from_path, to_path) 486 return self.copy_file(from_path, to_path) 489 to_path: pth.AnyPathLike) -> pth.AnyPath: 491 to_path = self.local_path(to_path) 492 self.mkdir(to_path.parent, parents=True, exist_ok=True) [all …]
|
D | linux_ssh.py | 130 def push(self, from_path: LocalPath, to_path: AnyPath) -> AnyPath: 136 return to_path 138 def pull(self, from_path: AnyPath, to_path: LocalPath) -> LocalPath: 144 return to_path
|
/external/cronet/stable/base/files/ |
D | file_util_win.cc | 133 const FilePath& to_path, in DoCopyFile() argument 136 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in DoCopyFile() 142 to_path.value().length() >= MAX_PATH) { in DoCopyFile() 154 const wchar_t* dest = to_path.value().c_str(); in DoCopyFile() 170 const FilePath& to_path, in DoCopyDirectory() argument 183 to_path.value().length() >= MAX_PATH) { in DoCopyDirectory() 188 FilePath real_to_path = to_path; in DoCopyDirectory() 221 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory() 230 FilePath target_path(to_path); in DoCopyDirectory() 471 const FilePath& to_path, in ReplaceFile() argument [all …]
|
D | file_util.h | 172 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path); 181 const FilePath& to_path, 204 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 222 const FilePath& to_path, 228 const FilePath& to_path, 736 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path); 744 const FilePath& to_path);
|
D | file_util_posix.cc | 143 const FilePath& to_path, in DoCopyDirectory() argument 150 DCHECK(to_path.value().find('*') == std::string::npos); in DoCopyDirectory() 158 FilePath real_to_path = to_path; in DoCopyDirectory() 192 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory() 206 FilePath target_path(to_path); in DoCopyDirectory() 489 const FilePath& to_path, in ReplaceFile() argument 492 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) { in ReplaceFile() 502 const FilePath& to_path, in CopyDirectory() argument 504 return DoCopyDirectory(from_path, to_path, recursive, false); in CopyDirectory() 508 const FilePath& to_path, in CopyDirectoryExcl() argument [all …]
|
/external/cronet/tot/base/files/ |
D | file_util_win.cc | 133 const FilePath& to_path, in DoCopyFile() argument 136 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in DoCopyFile() 142 to_path.value().length() >= MAX_PATH) { in DoCopyFile() 154 const wchar_t* dest = to_path.value().c_str(); in DoCopyFile() 170 const FilePath& to_path, in DoCopyDirectory() argument 183 to_path.value().length() >= MAX_PATH) { in DoCopyDirectory() 188 FilePath real_to_path = to_path; in DoCopyDirectory() 221 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory() 230 FilePath target_path(to_path); in DoCopyDirectory() 471 const FilePath& to_path, in ReplaceFile() argument [all …]
|
D | file_util.h | 172 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path); 181 const FilePath& to_path, 204 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 222 const FilePath& to_path, 228 const FilePath& to_path, 736 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path); 744 const FilePath& to_path);
|
D | file_util_posix.cc | 143 const FilePath& to_path, in DoCopyDirectory() argument 150 DCHECK(to_path.value().find('*') == std::string::npos); in DoCopyDirectory() 158 FilePath real_to_path = to_path; in DoCopyDirectory() 192 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory() 206 FilePath target_path(to_path); in DoCopyDirectory() 489 const FilePath& to_path, in ReplaceFile() argument 492 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) { in ReplaceFile() 502 const FilePath& to_path, in CopyDirectory() argument 504 return DoCopyDirectory(from_path, to_path, recursive, false); in CopyDirectory() 508 const FilePath& to_path, in CopyDirectoryExcl() argument [all …]
|
/external/libchrome/base/files/ |
D | file_util.h | 86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path); 95 const FilePath& to_path, 118 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 130 const FilePath& to_path, 136 const FilePath& to_path, 484 const FilePath& to_path); 492 const FilePath& to_path);
|
D | file_util_posix.cc | 181 const FilePath& to_path, in DoCopyDirectory() argument 188 DCHECK(to_path.value().find('*') == std::string::npos); in DoCopyDirectory() 196 FilePath real_to_path = to_path; in DoCopyDirectory() 225 if (recursive && DirectoryExists(to_path)) { in DoCopyDirectory() 239 FilePath target_path(to_path); in DoCopyDirectory() 385 const FilePath& to_path, in ReplaceFile() argument 388 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile() 396 const FilePath& to_path, in CopyDirectory() argument 398 return DoCopyDirectory(from_path, to_path, recursive, false); in CopyDirectory() 402 const FilePath& to_path, in CopyDirectoryExcl() argument [all …]
|
/external/google-breakpad/src/common/tests/ |
D | file_utils.cc | 47 bool CopyFile(const char* from_path, const char* to_path) { in CopyFile() argument 54 int outfile = HANDLE_EINTR(creat(to_path, 0666)); in CopyFile() 102 bool CopyFile(const std::string& from_path, const std::string& to_path) { in CopyFile() argument 103 return CopyFile(from_path.c_str(), to_path.c_str()); in CopyFile()
|
D | file_utils.h | 40 bool CopyFile(const std::string& from_path, const std::string& to_path); 41 bool CopyFile(const char* from_path, const char* to_path);
|
/external/rust/android-crates-io/crates/remain/src/ |
D | check.rs | 57 Some(item.to_path()) in collect_paths() 77 fn to_path(&self) -> Result<Path>; in to_path() method 82 fn to_path(&self) -> Result<Path> { in to_path() method 93 fn to_path(&self) -> Result<Path> { in to_path() method 104 fn to_path(&self) -> Result<Path> { in to_path() method
|
/external/rust/android-crates-io/crates/tokio/tests/ |
D | fs_copy.rs | 29 let to_path = dir.path().join("bar.txt"); in copy_permissions() localVariable 36 tokio::fs::copy(from_path, &to_path).await.unwrap(); in copy_permissions() 38 let to_perms = tokio::fs::metadata(to_path).await.unwrap().permissions(); in copy_permissions()
|
/external/rust/android-crates-io/crates/fs-err/src/ |
D | errors.rs | 150 to_path: PathBuf, field 158 to_path: impl Into<PathBuf>, in build() 166 to_path: to_path.into(), in build() 175 let to = self.to_path.display(); in fmt()
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/skrifa-0.24.1/src/outline/glyf/ |
D | outline.rs | 6 path::{to_path, ToPathError}, 153 pub fn to_path( in to_path() function 158 to_path(self.points, self.flags, self.contours, path_style, pen) in to_path()
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/skrifa-0.24.1/src/outline/glyf/ |
D | outline.rs | 6 path::{to_path, ToPathError}, 153 pub fn to_path( in to_path() function 158 to_path(self.points, self.flags, self.contours, path_style, pen) in to_path()
|