Home
last modified time | relevance | path

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

12

/external/autotest/venv/lucifer/
Dleasing.py31 from scandir import scandir
57 for entry in scandir(jobdir):
/external/python/cpython3/Lib/
Dpathlib.py407 scandir = _wrap_strfunc(os.scandir) variable in _NormalAccessor
489 scandir = parent_path._accessor.scandir
492 return self._select_from(parent_path, is_dir, exists, scandir)
497 def _select_from(self, parent_path, is_dir, exists, scandir): argument
507 def _select_from(self, parent_path, is_dir, exists, scandir): argument
511 for p in self.successor._select_from(path, is_dir, exists, scandir):
523 def _select_from(self, parent_path, is_dir, exists, scandir): argument
526 entries = list(scandir(parent_path))
533 for p in self.successor._select_from(path, is_dir, exists, scandir):
545 def _iterate_directories(self, parent_path, is_dir, scandir): argument
[all …]
Dglob.py121 with os.scandir(dirname) as it:
Dos.py348 scandir_it = scandir(top)
/external/linux-kselftest/tools/testing/selftests/ia64/
Daliasing-test.c72 n = scandir(path, &namelist, 0, alphasort); in scan_tree()
157 n = scandir(path, &namelist, 0, alphasort); in scan_rom()
/external/autotest/venv/
Drequirements.txt20 scandir==1.5
/external/compiler-rt/test/msan/
Dscandir_null.cc26 int res = scandir(buf, &d, NULL, NULL); in main()
Dscandir.cc45 int res = scandir(buf, &d, my_filter, my_compar); in main()
/external/elfutils/tests/
Dlfs-symbols66 scandir
/external/wpa_supplicant_8/hs20/server/www/
Dusers.php195 $files = scandir("$osu_root/spp/policy");
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp606 void scandir(string dirname, string prefix="") { in scandir() function
621 scandir(path, prefix + name + "/"); in scandir()
645 void scandir(string dir, string prefix="") { in scandir() function
698 scandir(subdirs[i], subdirs[i+1]); in scandir()
1485 scandir(rootpath); in main()
/external/python/cpython3/Lib/test/
Dtest_os.py3098 for entry in os.scandir(self.path))
3183 entries = list(os.scandir(path))
3202 entries = dict((entry.name, entry) for entry in os.scandir())
3290 entries = list(os.scandir(path_bytes))
3299 self.assertRaises(FileNotFoundError, os.scandir, '')
3303 iterator = os.scandir(self.path)
3314 self.assertRaises(TypeError, os.scandir, obj)
3319 iterator = os.scandir(self.path)
3330 with os.scandir(self.path) as iterator:
3338 with os.scandir(self.path) as iterator:
[all …]
/external/python/cpython3/Doc/library/
Dglob.rst17 the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and
Dos.rst1665 The :func:`scandir` function returns directory entries along with
2002 .. function:: scandir(path='.')
2009 Using :func:`scandir` instead of :func:`listdir` can significantly
2025 The :func:`scandir` iterator supports the :term:`context manager` protocol
2028 .. method:: scandir.close()
2039 The following example shows a simple use of :func:`scandir` to display all
2044 with os.scandir(path) as it:
2051 On Unix-based systems, :func:`scandir` uses the system's
2065 :func:`~scandir.close()` method. If a :func:`scandir` iterator is neither
2074 Object yielded by :func:`scandir` to expose the file path and other file
[all …]
/external/f2fs-tools/fsck/
Dsload.c178 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory()
/external/libxkbcommon/xkbcommon/test/
Dinteractive-evdev.c183 nents = scandir("/dev/input", &ents, filter_device_name, alphasort); in get_keyboards()
/external/ltp/tools/pounder21/
Drun.c620 i = scandir(fname, &namelist, test_filter, in process_dir()
/external/python/cpython3/Doc/whatsnew/
D3.5.rst120 * The new :func:`os.scandir` function provides a
447 PEP 471 - os.scandir() function -- a better and faster directory iterator
450 :pep:`471` adds a new directory iteration function, :func:`os.scandir`,
452 implemented using ``scandir``, which makes it 3 to 5 times faster
457 Additionally, ``scandir`` returns an iterator, as opposed to returning
461 The following example shows a simple use of :func:`os.scandir` to display all
466 for entry in os.scandir(path):
472 :pep:`471` -- os.scandir() function -- a better and faster directory iterator
1482 The new :func:`~os.scandir` function returning an iterator of
1483 :class:`~os.DirEntry` objects has been added. If possible, :func:`~os.scandir`
[all …]
D3.6.rst1222 :func:`~os.scandir` now supports :class:`bytes` paths on Windows.
1224 A new :meth:`~os.scandir.close` method allows explicitly closing a
1225 :func:`~os.scandir` iterator. The :func:`~os.scandir` iterator now
1226 supports the :term:`context manager` protocol. If a :func:`scandir`
1793 * Optimized globbing in :mod:`pathlib` by using :func:`os.scandir`;
/external/selinux/libselinux/src/
Dbooleans.c56 *len = scandir(path, &namelist, &filename_select, alphasort); in security_get_boolean_names()
/external/selinux/libsemanage/src/
Dsemanage_store.c767 if ((len = scandir(src, &names, semanage_filename_select, NULL)) == -1) { in semanage_copy_dir_flags()
813 if ((num_entries = scandir(path, &namelist, semanage_filename_select, in semanage_remove_directory()
Ddirect_api.c2547 priorities_len = scandir(toplevel, in semanage_direct_list_all()
2600 modules_len = scandir(priority_path, in semanage_direct_list_all()
/external/python/cpython3/Misc/
DNEWS759 - Issue #27998: Fixed bytes path support in os.scandir() on Windows.
1245 - Issue #26032: Optimized globbing in pathlib by using os.scandir(); it is now
2270 views and os.scandir() iterator.
2811 protocol for the os.scandir() iterator.
2818 - Issue #26117: The os.scandir() iterator now closes file descriptor not only
4252 views and os.scandir() iterator.
4599 - Issue #26117: The os.scandir() iterator now closes file descriptor not only
6535 - Issue #23605: os.walk() now calls os.scandir() instead of os.listdir().
6536 The usage of os.scandir() reduces the number of calls to os.stat().
6574 - Issue #22524: New os.scandir() function, part of the PEP 471: "os.scandir()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wext.c908 n = scandir(buf, &names, NULL, alphasort); in wext_add_hostap()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc3206 INTERCEPTOR(int, scandir, char *dirp, __sanitizer_dirent ***namelist,
3209 COMMON_INTERCEPTOR_ENTER(ctx, scandir, dirp, namelist, filter, compar);
3216 int res = REAL(scandir)(dirp, namelist,
3230 #define INIT_SCANDIR COMMON_INTERCEPT_FUNCTION(scandir);

12