Home
last modified time | relevance | path

Searched refs:from_path (Results 1 – 25 of 25) sorted by relevance

/external/rust/crates/walkdir/src/
Ddent.rs204 .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 …]
Dlib.rs603 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()
Derror.rs162 pub(crate) fn from_path( in from_path() method
/external/libchrome/base/files/
Dfile_util_posix.cc180 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 …]
Dfile_util.h86 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,
Dfile_util.cc46 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()
Dfile_util_unittest.cc1922 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/
Dfs_copy.rs26 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/
Dcrash_generator.cc264 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/
Dfile_utils.cc44 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()
Dfile_utils.h39 bool CopyFile(const char* from_path, const char* to_path);
/external/rust/crates/same-file/src/
Dlib.rs145 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()
Dunknown.rs21 pub fn from_path<P: AsRef<Path>>(_p: P) -> io::Result<Handle> { in from_path() method
Dunix.rs60 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path() method
Dwin.rs110 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path() method
/external/autotest/client/cros/faft/utils/
Dos_interface.py162 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/
Dpyauto_utils.py65 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/
Dis_stderr.rs23 let handle = Handle::from_path(candidate)?; in run()
/external/rust/crates/csv/examples/
Dtutorial-write-02.rs8 let mut wtr = csv::Writer::from_path(file_path)?; in run()
/external/rust/crates/csv/src/
Dwriter.rs89 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()
Dreader.rs103 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/
Dcsv_report.rs69 let writer = Writer::from_path(path)?; in write_file()
/external/rust/crates/rusqlite/src/vtab/
Dcsvtab.rs74 .from_path(&self.filename) in reader()
/external/python/oauth2client/oauth2client/contrib/
Dappengine.py378 entity_key = db.Key.from_path(self._model.kind(), self._key_name)
/external/rust/crates/bstr/src/
Dext_slice.rs214 fn from_path(path: &Path) -> Option<&[u8]> { in from_path() method