2016-05-15 21:59:28 +02:00
|
|
|
.. _xonsh_platform:
|
|
|
|
|
|
|
|
Platform-specific constants and implementations (``xonsh.platform``)
|
|
|
|
====================================================================
|
|
|
|
|
|
|
|
.. automodule:: xonsh.platform
|
2016-06-18 17:32:37 -04:00
|
|
|
:members:
|
|
|
|
:undoc-members:
|
|
|
|
|
2016-05-21 22:06:59 +02:00
|
|
|
|
2016-05-21 23:39:30 +02:00
|
|
|
.. py:function:: scandir
|
|
|
|
|
|
|
|
This is either `os.scandir` on Python 3.5+ or a function providing a
|
|
|
|
compatibility layer for it.
|
|
|
|
It is recommended for iterations over directory entries at a significantly
|
|
|
|
higher speed than `os.listdir` on Python 3.5+. It also caches properties
|
|
|
|
that are commonly used for filtering.
|
|
|
|
|
|
|
|
:param str path: The path to scan for entries.
|
|
|
|
:return: A generator yielding `DirEntry` instances.
|
|
|
|
|