/external/rust/crates/walkdir/src/ |
D | dent.rs | 204 .map_err(|err| Error::from_path(depth, path.clone(), err))?; in from_entry() 207 .map_err(|err| Error::from_path(depth, path.clone(), err))?; in from_entry() 226 .map_err(|err| Error::from_path(depth, ent.path(), err))?; in from_entry() 243 .map_err(|err| Error::from_path(depth, ent.path(), err))?; in from_entry() 253 pub(crate) fn from_path( in from_path() method 260 .map_err(|err| Error::from_path(depth, pb.clone(), err))? in from_path() 263 .map_err(|err| Error::from_path(depth, pb.clone(), err))? in from_path() 275 pub(crate) fn from_path( in from_path() method 284 .map_err(|err| Error::from_path(depth, pb.clone(), err))? in from_path() 287 .map_err(|err| Error::from_path(depth, pb.clone(), err))? in from_path() [all …]
|
D | lib.rs | 603 let handle = Handle::from_path(dent.path())?; in new() 624 Ok(child == &Handle::from_path(&self.path)?) in is_same() 668 .map_err(|e| Error::from_path(0, start.clone(), e)); in next() 671 let dent = itry!(DirEntry::from_path(0, start, false)); in next() 842 Error::from_path(dent.depth(), dent.path().to_path_buf(), err) in handle_entry() 884 Some(Error::from_path(self.depth, dent.path().to_path_buf(), err)) in push() 937 DirEntry::from_path(self.depth, dent.path().to_path_buf(), true)?; in follow() 948 let hchild = Handle::from_path(&child) in check_loop()
|
D | error.rs | 162 pub(crate) fn from_path( in from_path() method
|
/external/libchrome/base/files/ |
D | file_util_posix.cc | 180 bool DoCopyDirectory(const FilePath& from_path, in DoCopyDirectory() argument 189 DCHECK(from_path.value().find('*') == std::string::npos); in DoCopyDirectory() 191 if (from_path.value().size() >= PATH_MAX) { in DoCopyDirectory() 204 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in DoCopyDirectory() 213 FileEnumerator traversal(from_path, recursive, traverse_type); in DoCopyDirectory() 218 FilePath current = from_path; in DoCopyDirectory() 219 if (stat(from_path.value().c_str(), &from_stat) < 0) { in DoCopyDirectory() 221 << from_path.value(); in DoCopyDirectory() 224 FilePath from_path_base = from_path; in DoCopyDirectory() 228 from_path_base = from_path.DirName(); in DoCopyDirectory() [all …]
|
D | file_util.h | 86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path); 94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path, 118 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 129 BASE_EXPORT bool CopyDirectory(const FilePath& from_path, 135 BASE_EXPORT bool CopyDirectoryExcl(const FilePath& from_path, 483 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, 491 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
|
D | file_util.cc | 46 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument 47 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in Move() 49 return internal::MoveUnsafe(from_path, to_path); in Move()
|
D | file_util_unittest.cc | 1922 FilePath from_path = in TEST_F() local 1925 FilePath from_path = in TEST_F() local 1929 EXPECT_TRUE(CopyDirectory(from_path, dir_name_to, true)); in TEST_F()
|
/external/rust/crates/tokio/tests/ |
D | fs_copy.rs | 26 let from_path = dir.path().join("foo.txt"); in copy_permissions() localVariable 29 let from = tokio::fs::File::create(&from_path).await.unwrap(); in copy_permissions() 34 tokio::fs::copy(from_path, &to_path).await.unwrap(); in copy_permissions()
|
/external/google-breakpad/src/common/linux/tests/ |
D | crash_generator.cc | 264 char from_path[PATH_MAX], to_path[PATH_MAX]; in CopyProcFiles() local 266 int num_chars = snprintf(from_path, PATH_MAX, "/proc/%d/%s", in CopyProcFiles() 276 if (!CopyFile(from_path, to_path)) in CopyProcFiles()
|
/external/google-breakpad/src/common/tests/ |
D | file_utils.cc | 44 bool CopyFile(const char* from_path, const char* to_path) { in CopyFile() argument 45 int infile = HANDLE_EINTR(open(from_path, O_RDONLY)); in CopyFile()
|
D | file_utils.h | 39 bool CopyFile(const char* from_path, const char* to_path);
|
/external/rust/crates/same-file/src/ |
D | lib.rs | 145 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path() method 146 imp::Handle::from_path(p).map(Handle) in from_path() 375 Ok(Handle::from_path(path1)? == Handle::from_path(path2)?) in is_same_file()
|
D | unknown.rs | 21 pub fn from_path<P: AsRef<Path>>(_p: P) -> io::Result<Handle> { in from_path() method
|
D | unix.rs | 60 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path() method
|
D | win.rs | 110 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path() method
|
/external/autotest/client/cros/faft/utils/ |
D | os_interface.py | 162 def copy_file(self, from_path, to_path): argument 164 cmd = 'cp -f %s %s' % (from_path, to_path) 167 def copy_dir(self, from_path, to_path): argument 169 cmd = 'cp -rf %s %s' % (from_path, to_path)
|
/external/autotest/server/cros/ap_configurators/ |
D | pyauto_utils.py | 65 from_path = os.path.join(self._backup_dir, self._backup_basename) 66 logging.info('Reinstating backup from %s to %s' % (from_path, self._path)) 67 shutil.move(from_path, self._path)
|
/external/rust/crates/same-file/examples/ |
D | is_stderr.rs | 23 let handle = Handle::from_path(candidate)?; in run()
|
/external/rust/crates/csv/examples/ |
D | tutorial-write-02.rs | 8 let mut wtr = csv::Writer::from_path(file_path)?; in run()
|
/external/rust/crates/csv/src/ |
D | writer.rs | 89 pub fn from_path<P: AsRef<Path>>(&self, path: P) -> Result<Writer<File>> { in from_path() method 591 pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Writer<File>> { in from_path() method 592 WriterBuilder::new().from_path(path) in from_path()
|
D | reader.rs | 103 pub fn from_path<P: AsRef<Path>>(&self, path: P) -> Result<Reader<File>> { in from_path() method 811 pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Reader<File>> { in from_path() method 812 ReaderBuilder::new().from_path(path) in from_path()
|
/external/rust/crates/criterion/src/ |
D | csv_report.rs | 69 let writer = Writer::from_path(path)?; in write_file()
|
/external/rust/crates/rusqlite/src/vtab/ |
D | csvtab.rs | 74 .from_path(&self.filename) in reader()
|
/external/python/oauth2client/oauth2client/contrib/ |
D | appengine.py | 378 entity_key = db.Key.from_path(self._model.kind(), self._key_name)
|
/external/rust/crates/bstr/src/ |
D | ext_slice.rs | 214 fn from_path(path: &Path) -> Option<&[u8]> { in from_path() method
|