Lines Matching refs:scandir
1776 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
2201 :func:`scandir` will provide as much of this information as possible without
2207 elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch
2222 The entry's base filename, relative to the :func:`scandir` *path*
2225 The :attr:`name` attribute will be ``bytes`` if the :func:`scandir`
2232 entry.name)`` where *scandir_path* is the :func:`scandir` *path*
2233 argument. The path is only absolute if the :func:`scandir` *path*
2234 argument was absolute. If the :func:`scandir` *path*
2238 The :attr:`path` attribute will be ``bytes`` if the :func:`scandir`
2847 By default, errors from the :func:`scandir` call are ignored. If optional
2898 This function now calls :func:`os.scandir` instead of :func:`os.listdir`,