Home
last modified time | relevance | path

Searched full:scandir (Results 1 – 25 of 116) sorted by relevance

12345

/external/python/pyfakefs/pyfakefs/tests/
Dall_tests_without_extra_packages.py14 Excludes tests using external scandir package."""
24 from os import scandir
26 scandir = None variable
27 extra_packages.scandir = scandir
28 extra_packages.use_scandir = scandir
Dexample_test.py128 """Test example.scandir() which uses `os.scandir()`.
147 not use_scandir_package, "Testing only if scandir module is installed"
150 """Test example.scandir() which uses `scandir.scandir()`.
152 The scandir module has been replaced with the fake_scandir module so
154 `scandir.DirEntry` objects.
Dexample.py38 import scandir
42 scandir = None variable
142 return list(scandir.scandir(path))
143 return list(os.scandir(path))
Dall_tests.py16 Includes tests with external pathlib2 and scandir packages if installed."""
/external/python/pyfakefs/pyfakefs/
Dfake_scandir.py13 """A fake implementation for the `scandir` function working with
16 and the standalone function available in the standalone `scandir` python
129 """Iterator for DirEntry objects returned from `scandir()`
139 "scandir does not support file descriptor " "path argument"
177 def scandir(filesystem, path=""): function
268 """Uses FakeFilesystem to provide a fake `scandir` module replacement.
270 .. Note:: The ``scandir`` function is a part of the standard ``os`` module
271 since Python 3.5. This class handles the separate ``scandir`` module
284 return "scandir", "walk"
289 def scandir(self, path="."): member in FakeScanDirModule
[all …]
Dextra_packages.py23 import scandir
29 from os import scandir # noqa: F401
/external/python/cpython3/Lib/
Dpathlib.py319 scandir = path_cls._scandir
322 return self._select_from(parent_path, is_dir, exists, scandir)
327 def _select_from(self, parent_path, is_dir, exists, scandir): argument
337 def _select_from(self, parent_path, is_dir, exists, scandir): argument
341 for p in self.successor._select_from(path, is_dir, exists, scandir):
353 def _select_from(self, parent_path, is_dir, exists, scandir): argument
355 with scandir(parent_path) as scandir_it:
372 for p in self.successor._select_from(path, is_dir, exists, scandir):
383 def _iterate_directories(self, parent_path, is_dir, scandir): argument
386 with scandir(parent_path) as scandir_it:
[all …]
Dos.py136 _add("HAVE_FDOPENDIR", "scandir")
314 By default errors from the os.scandir() call are ignored. If
356 # Note that scandir is global in this module due
358 scandir_it = scandir(top)
415 # entry.is_symlink() result during the loop on os.scandir() because
429 if {open, stat} <= supports_dir_fd and {scandir, stat} <= supports_fd:
484 scandir_it = scandir(topfd)
Dshutil.py559 with os.scandir(src) as itr:
600 with os.scandir(path) as scandir_it:
603 onerror(os.scandir, path, sys.exc_info())
612 # os.scandir or entry.is_dir above.
631 with os.scandir(topfd) as scandir_it:
635 onerror(os.scandir, path, sys.exc_info())
671 # os.scandir or stat.S_ISDIR above.
687 os.scandir in os.supports_fd and
/external/apache-xml/test/java/src/org/apache/qetest/xsl/
DResultScanner.java79 scanDir(resultDir, writer, 1); // 1 = starting recursion in scanResults()
106 protected void scanDir(File resultDir, PrintWriter writer, int depth) in scanDir() method in ResultScanner
112 logError(writer, "scanDir: MAX_DEPTH exceeded, returning!"); in scanDir()
118 logError(writer, "scanDir: attempt to scan non-directory, returning!"); in scanDir()
181 scanDir(new File(resultDir, subdirs[i]), writer, depth + 1); in scanDir()
/external/python/pyfakefs/
Dextra_requirements.txt1 # "pathlib2" and "scandir" are backports of new standard modules, pyfakefs will
11 scandir>=1.8
Dmypy.ini24 [mypy-scandir.*]
/external/trusty/musl/src/dirent/
Dscandir.c8 int scandir(const char *path, struct dirent ***res, in scandir() function
47 weak_alias(scandir, scandir64);
/external/linux-kselftest/tools/testing/selftests/ia64/
Daliasing-test.c69 n = scandir(path, &namelist, 0, alphasort); in scan_tree()
71 perror("scandir"); in scan_tree()
154 n = scandir(path, &namelist, 0, alphasort); in scan_rom()
156 perror("scandir"); in scan_rom()
/external/musl/include/
Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct d…
63 #define scandir64 scandir
/external/trusty/musl/include/
Ddirent.h43 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct d…
73 #define scandir64 scandir
/external/sg3_utils/src/
Dsg_map26.c75 /* scandir() and stat() categories */
383 num = scandir(dir_name, &namelist, nd_match_scandir_select, NULL); in list_matching_nodes()
386 pr2serr("scandir: %s %s\n", dir_name, in list_matching_nodes()
430 num = scandir(dir_name, &namelist, first_scandir_select, NULL); in scan_for_first()
433 snprintf(name, NAME_LEN_MAX, "scandir: %s", dir_name); in scan_for_first()
498 num = scandir(dir_name, &namelist, from_sg_scandir_select, NULL); in from_sg_scan()
501 pr2serr("scandir: %s %s\n", dir_name, in from_sg_scan()
542 num = scandir(dir_name, &namelist, to_sg_scandir_select, NULL); in to_sg_scan()
/external/perfetto/ui/
Dbuild.js257 scanDir('ui/src/assets');
258 scanDir('ui/src/chrome_extension');
259 scanDir('ui/src/test/diff_viewer');
260 scanDir('buildtools/typefaces');
261 scanDir('buildtools/catapult_trace_viewer');
273 scanDir('ui/src/open_perfetto_trace');
294 scanDir(cfg.outDistRootDir);
746 function scanDir(dir, regex) { function
/external/bpftool/.github/workflows/
Dlint-shell.yaml27 scandir: './scripts'
/external/elfutils/tests/
Dlfs-symbols66 scandir
/external/autotest/venv/
Drequirements.txt21 scandir==1.5
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a2.rst18 New os.scandir() function, part of the :pep:`471`: "os.scandir() function -- a
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/posix/
Dposix_filesystem_helper.h32 // This is a filter for `scandir`.
/external/compiler-rt/test/msan/
Dscandir_null.cc26 int res = scandir(buf, &d, NULL, NULL); in main()
/external/musl/src/dirent/
Dscandir.c8 int scandir(const char *path, struct dirent ***res, in scandir() function

12345