/third_party/python/Lib/test/test_importlib/ |
H A D | test_compatibilty_files.py | 43 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())
|
/third_party/python/Lib/ |
H A D | pathlib.py | 317 is_dir = path_cls.is_dir 320 if not is_dir(parent_path): 322 return self._select_from(parent_path, is_dir, exists, scandir) 327 def _select_from(self, parent_path, is_dir, exists, scandir): 337 def _select_from(self, parent_path, is_dir, exists, scandir): 340 if (is_dir if self.dironly else exists)(path): 341 for p in self.successor._select_from(path, is_dir, exists, scandir): 353 def _select_from(self, parent_path, is_dir, exists, scandir): 360 # "entry.is_dir()" ca 1245 def is_dir(self): global() member in Path [all...] |
H A D | shutil.py | 490 if srcentry.is_dir(): 496 elif srcentry.is_dir(): 590 return entry.is_dir(follow_symlinks=False) 612 # os.scandir or entry.is_dir above. 640 is_dir = entry.is_dir(follow_symlinks=False) 642 is_dir = False 644 if is_dir: 647 is_dir = stat.S_ISDIR(orig_st.st_mode) 651 if is_dir [all...] |
H A D | os.py | 377 is_dir = entry.is_dir() 379 # If is_dir() raises an OSError, consider that the entry is not 381 is_dir = False 383 if is_dir: 388 if not topdown and is_dir: 493 if entry.is_dir():
|
/third_party/gn/src/base/files/ |
H A D | file_enumerator.cc | 20 bool FileEnumerator::IsTypeMatched(bool is_dir) const { in IsTypeMatched() 22 (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0; in IsTypeMatched()
|
H A D | file_enumerator_posix.cc | 141 const bool is_dir = info.IsDirectory(); in Next() local 143 if (recursive_ && is_dir) in Next() 146 if (is_pattern_matched && IsTypeMatched(is_dir)) in Next()
|
H A D | file_enumerator_win.cc | 157 const bool is_dir = in Next() local 162 if (is_dir && recursive_) { in Next() 172 if (IsTypeMatched(is_dir) && IsPatternMatched(filename)) in Next()
|
H A D | file_enumerator.h | 139 bool IsTypeMatched(bool is_dir) const;
|
/third_party/protobuf/php/tests/ |
H A D | autoload.php | 11 if (!is_dir($path)) { 22 if (!is_dir($filename)) {
|
/third_party/lwip/src/apps/http/makefsdata/ |
H A D | tinydir.h | 184 int is_dir; member 550 file->is_dir = in tinydir_open() 607 if (i >= dir->n_files || !dir->_files[i].is_dir) in tinydir_open() 752 if (fa->is_dir != fb->is_dir) in tinydir_open() 754 return -(fa->is_dir - fb->is_dir); in tinydir_open()
|
/third_party/python/Lib/importlib/resources/ |
H A D | _adapters.py | 69 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
|
H A D | simple.py | 66 def is_dir(self): member in ResourceHandle 88 def is_dir(self): member in ResourceContainer
|
H A D | readers.py | 66 if not all(path.is_dir() for path in self._paths): 79 def is_dir(self): member in MultiplexedPath
|
/third_party/rust/crates/glob/src/ |
H A D | lib.rs | 318 fn is_dir(p: &Path) -> bool { in is_dir() functions 319 fs::metadata(p).map(|m| m.is_dir()).unwrap_or(false) in is_dir() 358 if self.require_dir && !is_dir(&path) { in next() 374 if is_dir(&path) { in next() 422 if !self.require_dir || is_dir(&path) { in next() 843 let is_dir = is_dir(path); in fill_todo() 858 if (special && is_dir) || (!special && fs::metadata(&next_path).is_ok()) { in fill_todo() 862 None if is_dir => { in fill_todo()
|
/third_party/rust/crates/syn/tests/repo/ |
H A D | mod.rs | 243 if !entry.file_type().is_dir() { in for_each_rust_file() 281 if path.is_dir() { in base_dir_filter() 334 if !test_src.join(exclude).is_dir() { in clone_rust()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify13.c | 54 int is_dir; member 105 if (objects[i].is_dir) in create_objects() 131 if (!objects[i].is_dir) in setup_marks()
|
/third_party/eudev/src/shared/ |
H A D | mkdir.c | 76 r = is_dir(p, true); in mkdir_parents_internal() 121 if (r < 0 && (errno != EEXIST || is_dir(path, true) <= 0)) in mkdir_p_internal()
|
/third_party/rust/crates/cxx/gen/build/src/ |
H A D | out.rs | 95 if metadata.is_dir() { in best_effort_remove() 112 if metadata.is_dir() { in best_effort_remove()
|
/third_party/f2fs-tools/fsck/ |
H A D | node.h | 164 static inline void set_cold_node(struct f2fs_node *rn, bool is_dir) in set_cold_node() argument 168 if (is_dir) in set_cold_node()
|
/third_party/ltp/testcases/kernel/security/prot_hsymlinks/ |
H A D | prot_hsymlinks.c | 90 int is_dir; member 107 int is_dir; member 422 ufile->is_dir = (type == IS_DIRECTORY); in ufiles_add() 469 if (ufile->is_dir) in create_check_hlinks()
|
/third_party/python/PC/layout/ |
H A D | main.py | 88 if f.is_dir(): 202 if d.is_dir(): 334 elif zip_path.is_dir(): 378 elif ns.zip.is_dir():
|
/third_party/node/deps/openssl/openssl/engines/ |
H A D | e_loader_attic.c | 867 is_dir enumerator 884 struct { /* Used with is_dir */ 919 if (ctx->type != is_dir) { in OSSL_STORE_LOADER_CTX_free() 1041 ctx->type = is_dir; in file_open_ex() 1155 if (ctx->type != is_dir) { in file_find() 1521 if (ctx->type == is_dir) { in file_load() 1657 if (ctx->type == is_dir) in file_eof() 1669 if (ctx->type == is_dir) in file_close()
|
/third_party/openssl/engines/ |
H A D | e_loader_attic.c | 867 is_dir enumerator 884 struct { /* Used with is_dir */ 919 if (ctx->type != is_dir) { in OSSL_STORE_LOADER_CTX_free() 1041 ctx->type = is_dir; in file_open_ex() 1155 if (ctx->type != is_dir) { in file_find() 1521 if (ctx->type == is_dir) { in file_load() 1657 if (ctx->type == is_dir) in file_eof() 1669 if (ctx->type == is_dir) in file_close()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/ |
H A D | bin.rs | 45 match Path::new(&v).is_dir() { in validate_path()
|
/third_party/python/PC/layout/support/ |
H A D | pip.py | 30 if not pip_dir.is_dir():
|