You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This text is particularly relevant:
"Like listdir, scandir calls the operating system's directory iteration system calls to get the names of the files in the given path, but it's different from listdir in two ways:
Instead of returning bare filename strings, it returns lightweight DirEntry objects that hold the filename string and provide simple methods that allow access to the additional data the operating system may have returned.
It returns a generator instead of a list, so that scandir acts as a true iterator instead of returning the full list immediately."
The text was updated successfully, but these errors were encountered:
Firstly, thanks for this wonderful module. One improvement suggestion is to use scandir() rather than listdir().
You can read more about scandir() here:
https://www.python.org/dev/peps/pep-0471/
This text is particularly relevant:
"Like listdir, scandir calls the operating system's directory iteration system calls to get the names of the files in the given path, but it's different from listdir in two ways:
The text was updated successfully, but these errors were encountered: