Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/
Dpathlib.py400 scandir = os.scandir variable in _NormalAccessor
482 scandir = parent_path._accessor.scandir
485 return self._select_from(parent_path, is_dir, exists, scandir)
490 def _select_from(self, parent_path, is_dir, exists, scandir): argument
500 def _select_from(self, parent_path, is_dir, exists, scandir): argument
504 for p in self.successor._select_from(path, is_dir, exists, scandir):
516 def _select_from(self, parent_path, is_dir, exists, scandir): argument
519 entries = list(scandir(parent_path))
526 for p in self.successor._select_from(path, is_dir, exists, scandir):
538 def _iterate_directories(self, parent_path, is_dir, scandir): argument
[all …]
Dshutil.py371 with os.scandir(path) as scandir_it:
374 onerror(os.scandir, path, sys.exc_info())
406 with os.scandir(topfd) as scandir_it:
410 onerror(os.scandir, path, sys.exc_info())
453 os.scandir in os.supports_fd and
Dos.py349 scandir_it = scandir(top)
420 if {open, stat} <= supports_dir_fd and {scandir, stat} <= supports_fd:
475 scandir_it = scandir(topfd)
Dglob.py121 with os.scandir(dirname) as it:
/external/autotest/venv/lucifer/
Dleasing.py27 from scandir import scandir
53 for entry in scandir(jobdir):
/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/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/autotest/venv/
Drequirements.txt21 scandir==1.5
/external/elfutils/tests/
Dlfs-symbols66 scandir
/external/python/cpython3/PC/layout/support/
Dfilesets.py81 condition, (type(root)(f2) for f2 in os.scandir(d) if f2.is_dir())
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a2.rst18 New os.scandir() function, part of the PEP 471: "os.scandir() function -- a
D3.5.0a3.rst478 os.walk() now calls os.scandir() instead of os.listdir(). The usage of
479 os.scandir() reduces the number of calls to os.stat(). Initial patch written
D3.6.0b2.rst238 Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun.
/external/python/cpython3/Lib/test/
Dtest_os.py3374 for entry in os.scandir(self.path))
3462 entries = list(os.scandir(path))
3481 entries = dict((entry.name, entry) for entry in os.scandir())
3569 entries = list(os.scandir(path_bytes))
3583 entries = list(os.scandir(path_bytes))
3596 self.assertIn(os.scandir, os.supports_fd)
3605 with os.scandir(fd) as it:
3623 self.assertRaises(FileNotFoundError, os.scandir, '')
3627 iterator = os.scandir(self.path)
3638 self.assertRaises(TypeError, os.scandir, obj)
[all …]
/external/wpa_supplicant_8/hs20/server/www/
Dusers.php212 $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/Doc/library/
Dglob.rst25 the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and
Dos.rst1776 The :func:`scandir` function returns directory entries along with
2120 .. function:: scandir(path='.')
2127 Using :func:`scandir` instead of :func:`listdir` can significantly
2146 The :func:`scandir` iterator supports the :term:`context manager` protocol
2149 .. method:: scandir.close()
2160 The following example shows a simple use of :func:`scandir` to display all
2165 with os.scandir(path) as it:
2172 On Unix-based systems, :func:`scandir` uses the system's
2186 :func:`~scandir.close()` method. If a :func:`scandir` iterator is neither
2198 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/e2fsprogs/misc/
Dcreate_inode.c719 static int scandir(const char *dir_name, struct dirent ***name_list, in scandir() function
807 num_dents = scandir(".", &dent, NULL, alphasort); in __populate_fs()
/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 …]
/external/selinux/libselinux/src/
Dbooleans.c56 *len = scandir(path, &namelist, &filename_select, alphasort); in security_get_boolean_names()
/external/fonttools/Lib/fontTools/ufoLib/
D__init__.py222 p.name for p in parentFS.scandir("/")
736 for path in imagesFS.scandir("/"):
874 p.name for p in parentFS.scandir("/")

12