Home
last modified time | relevance | path

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

123456789

/external/linux-kselftest/tools/testing/selftests/exec/
Dnon-regular.c16 int is_dir) in rm() argument
20 if (is_dir) in rm()
38 int is_dir; in FIXTURE() local
45 int is_dir; in FIXTURE_VARIANT() local
90 .is_dir = 1, in FIXTURE_VARIANT_ADD()
150 self->is_dir = variant->is_dir; in FIXTURE_SETUP()
152 rm(_metadata, self->pathname, variant->is_dir); in FIXTURE_SETUP()
158 rm(_metadata, self->pathname, self->is_dir); in FIXTURE_TEARDOWN()
/external/autotest/client/bin/result_tools/
Dresult_info.py158 if self.is_dir:
164 if self.is_dir:
200 if self.is_dir:
210 if self.is_dir:
238 for f in [f for f in self.files if f.is_dir]:
316 def is_dir(self): member in ResultInfo
340 if not self.is_dir:
350 if self.is_dir:
478 if not self.is_dir:
497 if self.is_dir:
[all …]
/external/rust/crates/tempfile/tests/
Dtempdir.rs32 fn is_dir(&self) -> bool; in is_dir() method
39 fn is_dir(&self) -> bool { in is_dir() method
40 fs::metadata(self).map(|m| m.is_dir()).unwrap_or(false) in is_dir()
163 assert!(path.is_dir()); in recursive_mkdir_rel()
165 assert!(path.is_dir()); in recursive_mkdir_rel()
185 assert!(path.is_dir()); in recursive_mkdir_rel_2()
186 assert!(path.parent().unwrap().is_dir()); in recursive_mkdir_rel_2()
195 assert!(path2.is_dir()); in recursive_mkdir_rel_2()
196 assert!(path2.parent().unwrap().is_dir()); in recursive_mkdir_rel_2()
/external/cronet/third_party/boringssl/src/util/
Dgenerate_build_files.py581 def OnlyFIPSFragments(path, dent, is_dir): argument
582 return is_dir or (path.startswith(
584 NoTests(path, dent, is_dir))
586 def NoTestsNorFIPSFragments(path, dent, is_dir): argument
587 return (NoTests(path, dent, is_dir) and
588 (is_dir or not OnlyFIPSFragments(path, dent, is_dir)))
590 def NoTests(path, dent, is_dir): argument
593 if is_dir:
598 def OnlyTests(path, dent, is_dir): argument
601 if is_dir:
[all …]
/external/boringssl/src/util/
Dgenerate_build_files.py581 def OnlyFIPSFragments(path, dent, is_dir): argument
582 return is_dir or (path.startswith(
584 NoTests(path, dent, is_dir))
586 def NoTestsNorFIPSFragments(path, dent, is_dir): argument
587 return (NoTests(path, dent, is_dir) and
588 (is_dir or not OnlyFIPSFragments(path, dent, is_dir)))
590 def NoTests(path, dent, is_dir): argument
593 if is_dir:
598 def OnlyTests(path, dent, is_dir): argument
601 if is_dir:
[all …]
/external/openscreen/build/scripts/
Ddir_exists.py18 print(is_dir(sys.argv[1]), end='')
22 def is_dir(dir_name): function
29 return is_dir(args[0])
/external/rust/crates/walkdir/src/tests/
Drecursive.rs31 assert!(ent.file_type().is_dir()); in empty()
47 assert!(ent.file_type().is_dir()); in empty_follow()
105 assert!(ent.file_type().is_dir()); in one_dir()
348 assert!(!link.file_type().is_dir()); in sym_root_file_nofollow()
352 assert!(!link.metadata().unwrap().is_dir()); in sym_root_file_nofollow()
378 assert!(!link.file_type().is_dir()); in sym_root_file_follow()
382 assert!(!link.metadata().unwrap().is_dir()); in sym_root_file_follow()
410 assert!(!link.file_type().is_dir()); in sym_root_dir_nofollow()
414 assert!(!link.metadata().unwrap().is_dir()); in sym_root_dir_nofollow()
446 assert!(link.file_type().is_dir()); in sym_root_dir_follow()
[all …]
/external/pigweed/pw_stm32cube_build/py/pw_stm32cube_build/
Dgen_file_list.py35 assert (stm32cube_dir / 'hal_driver').is_dir(), 'hal_driver not found'
36 assert (stm32cube_dir / 'cmsis_core').is_dir(), 'cmsis_core not found'
37 assert (stm32cube_dir / 'cmsis_device').is_dir(), 'cmsis_device not found'
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc127 bool is_dir);
134 bool is_dir);
174 void UpdateRecursiveWatches(InotifyReader::Watch fired_watch, bool is_dir);
357 bool is_dir) { in OnFilePathChanged() argument
366 weak_ptr_, fired_watch, child, created, deleted, is_dir)); in OnFilePathChanged()
374 bool is_dir) { in OnFilePathChangedOnOriginSequence() argument
442 UpdateRecursiveWatches(fired_watch, is_dir); in OnFilePathChangedOnOriginSequence()
452 UpdateRecursiveWatches(fired_watch, is_dir); in OnFilePathChangedOnOriginSequence()
530 bool is_dir) { in UpdateRecursiveWatches() argument
550 if (!is_dir) in UpdateRecursiveWatches()
Dfile_enumerator.cc20 bool FileEnumerator::IsTypeMatched(bool is_dir) const { in IsTypeMatched()
22 (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0; in IsTypeMatched()
Dfile_enumerator_posix.cc159 const bool is_dir = info.IsDirectory(); in Next() local
161 if (recursive_ && is_dir) in Next()
164 if (is_pattern_matched && IsTypeMatched(is_dir)) in Next()
/external/python/cpython3/Lib/
Dpathlib.py402 is_dir = path_cls.is_dir
405 if not is_dir(parent_path):
407 return self._select_from(parent_path, is_dir, exists, scandir)
412 def _select_from(self, parent_path, is_dir, exists, scandir): argument
422 def _select_from(self, parent_path, is_dir, exists, scandir): argument
425 if (is_dir if self.dironly else exists)(path):
426 for p in self.successor._select_from(path, is_dir, exists, scandir):
438 def _select_from(self, parent_path, is_dir, exists, scandir): argument
448 if not entry.is_dir():
457 for p in self.successor._select_from(path, is_dir, exists, scandir):
[all …]
/external/rust/crates/remove_dir_all/src/
Dfs.rs92 let is_dir = dir_entry.file_type()?.is_dir(); in _delete_dir_contents() localVariable
94 if is_dir { in _delete_dir_contents()
103 } else if is_dir { in _delete_dir_contents()
/external/python/setuptools/setuptools/_vendor/importlib_resources/tests/
Dtest_compatibilty_files.py43 self.assertFalse(self.files.is_dir())
47 self.assertFalse((self.files / 'a').is_dir())
51 self.assertFalse((self.files / 'a' / 'a').is_dir())
53 self.assertFalse((self.files / 'a' / 'a' / 'a').is_dir())
/external/python/setuptools/pkg_resources/_vendor/importlib_resources/tests/
Dtest_compatibilty_files.py43 self.assertFalse(self.files.is_dir())
47 self.assertFalse((self.files / 'a').is_dir())
51 self.assertFalse((self.files / 'a' / 'a').is_dir())
53 self.assertFalse((self.files / 'a' / 'a' / 'a').is_dir())
/external/rust/crates/protobuf-parse/tests/
Dbundled_proto_consistent.rs16 assert_eq!(a.is_dir(), b.is_dir(), "{} {}", a.display(), b.display()); in assert_equal_recursively()
18 if a.is_dir() { in assert_equal_recursively()
/external/python/parse_type/tasks/_vendor/
Dpathlib.py459 is_dir = path_cls.is_dir
462 return self._select_from(parent_path, is_dir, exists, listdir)
467 def _select_from(self, parent_path, is_dir, exists, listdir): argument
477 def _select_from(self, parent_path, is_dir, exists, listdir): argument
478 if not is_dir(parent_path):
482 for p in self.successor._select_from(path, is_dir, exists, listdir):
492 def _select_from(self, parent_path, is_dir, exists, listdir): argument
493 if not is_dir(parent_path):
500 for p in self.successor._select_from(path, is_dir, exists, listdir):
509 def _iterate_directories(self, parent_path, is_dir, listdir): argument
[all …]
/external/cronet/base/files/
Dfile_enumerator.cc20 bool FileEnumerator::IsTypeMatched(bool is_dir) const { in IsTypeMatched()
22 (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0; in IsTypeMatched()
/external/pigweed/pw_package/py/pw_package/packages/
Darduino_core.py38 return (path / 'hardware').is_dir()
119 path for path in (path / 'hardware').iterdir() if path.is_dir()
124 path for path in hardware_dir.iterdir() if path.is_dir()
/external/rust/crates/tokio/tests/
Dfs_dir.rs18 assert!(new_dir_2.is_dir()); in create_dir()
28 assert!(new_dir_2.is_dir()); in create_all()
39 assert!(new_dir_2.is_dir()); in build_dir()
/external/cronet/net/base/
Ddirectory_listing_unittest.cc18 bool is_dir; member
49 test_case.is_dir, test_case.filesize, test_case.time); in TEST()
/external/python/setuptools/pkg_resources/_vendor/
Dzipp.py249 if self.is_dir():
295 def is_dir(self): member in Path
299 return self.exists() and not self.is_dir()
305 if not self.is_dir():
/external/python/setuptools/setuptools/_vendor/
Dzipp.py249 if self.is_dir():
295 def is_dir(self): member in Path
299 return self.exists() and not self.is_dir()
305 if not self.is_dir():
/external/tensorflow/tensorflow/core/summary/
Dsummary_file_writer.cc42 const Status is_dir = env_->IsDirectory(logdir); in Initialize() local
43 if (!is_dir.ok()) { in Initialize()
44 if (is_dir.code() != tensorflow::error::NOT_FOUND) { in Initialize()
45 return is_dir; in Initialize()
/external/python/setuptools/setuptools/_vendor/importlib_resources/
D_adapters.py69 is_dir = is_file variable in CompatibilityFiles.SpecPath
99 def is_dir(self): member in CompatibilityFiles.ChildPath
131 is_dir = is_file variable in CompatibilityFiles.OrphanPath

123456789