About Anaconda Help Download Anaconda

scandir, a better directory iterator and faster os.walk()

Installers

  • linux-32 v1.9.0
  • linux-64 v1.10.0
  • linux-ppc64le v1.10.0
  • osx-64 v1.10.0
  • win-32 v1.10.0
  • win-64 v1.10.0
  • noarch v1.10.0

conda install

To install this package run one of the following:
conda install main::scandir

Description

scandir() is a directory iteration function like os.listdir(), except that instead of returning a list of bare filenames, it yields DirEntry objects that include file type and stat information along with the name. Using scandir() increases the speed of os.walk() by 2-20 times (depending on the platform and file system) by avoiding unnecessary calls to os.stat() in most cases.


© 2025 Anaconda, Inc. All Rights Reserved. (v4.0.7) Legal | Privacy Policy