<real> = <stat>.st_mtime/st_size/… # Modification time, size in bytes, …
<real> = <stat>.st_mtime/st_size/… # Modification time, size in bytes, ...
```
### DirEntry
**Unlike listdir(), scandir() returns DirEntry objects that cache isfile, isdir and on Windows also stat information, thus significantly increasing the performance of code that requires it.**
```python
<iter> = scandir(path='.') # Returns DirEntry objects located at path.
<str> = <DirEntry>.path # Returns whole path as a string.
<iter> = scandir(path='.') # Returns DirEntry objects located at the path.
<str> = <DirEntry>.path # Returns the whole path as a string.
<str> = <DirEntry>.name # Returns final component as a string.
<file> = open(<DirEntry>) # Opens the file and returns a file object.
<str> = path.dirname(<path>) <spanclass="hljs-comment"># Returns path without the final component.</span>
<tup.> = path.splitext(<path>) <spanclass="hljs-comment"># Splits on last period of the final component.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><list> = listdir(path=<spanclass="hljs-string">'.'</span>) <spanclass="hljs-comment"># Returns filenames located at path.</span>
<pre><codeclass="python language-python hljs"><list> = listdir(path=<spanclass="hljs-string">'.'</span>) <spanclass="hljs-comment"># Returns filenames located at the path.</span>
<list> = glob(<spanclass="hljs-string">'<pattern>'</span>) <spanclass="hljs-comment"># Returns paths matching the wildcard pattern.</span>
<real> = <stat>.st_mtime/st_size/… <spanclass="hljs-comment"># Modification time, size in bytes, …</span>
<real> = <stat>.st_mtime/st_size/… <spanclass="hljs-comment"># Modification time, size in bytes, ...</span>
</code></pre>
<div><h3id="direntry">DirEntry</h3><p><strong>Unlike listdir(), scandir() returns DirEntry objects that cache isfile, isdir and on Windows also stat information, thus significantly increasing the performance of code that requires it.</strong></p><pre><codeclass="python language-python hljs"><iter> = scandir(path=<spanclass="hljs-string">'.'</span>) <spanclass="hljs-comment"># Returns DirEntry objects located at path.</span>
<str> = <DirEntry>.path <spanclass="hljs-comment"># Returns whole path as a string.</span>
<div><h3id="direntry">DirEntry</h3><p><strong>Unlike listdir(), scandir() returns DirEntry objects that cache isfile, isdir and on Windows also stat information, thus significantly increasing the performance of code that requires it.</strong></p><pre><codeclass="python language-python hljs"><iter> = scandir(path=<spanclass="hljs-string">'.'</span>) <spanclass="hljs-comment"># Returns DirEntry objects located at the path.</span>
<str> = <DirEntry>.path <spanclass="hljs-comment"># Returns the whole path as a string.</span>
<str> = <DirEntry>.name <spanclass="hljs-comment"># Returns final component as a string.</span>
<file> = open(<DirEntry>) <spanclass="hljs-comment"># Opens the file and returns a file object.</span>