BSD Ports

sysutils/py-scandir 1.10.0_3 DragonFly

Fast and featureful directory iterator

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
python, sysutils
Package size
25.1 KiB, 108.7 KiB installed

Description

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

scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most operating systems provide while iterating files in a directory (such as type and stat information).

This module also includes a version of os.walk() that uses scandir() to speed it up significantly.

NOTE: If you're using Python version 3.5+, os.scandir() and the speed improvements to os.walk() are already available in the standard library.

In the other systems

SystemPortVersion
DragonFlysysutils/py-scandir1.10.0_3
FreeBSDsysutils/py-scandir1.10.0_3
MidnightBSDsysutils/py-scandir1.10.0_2
HardenedBSDsysutils/py-scandir1.10.0_3
GhostBSDsysutils/py-scandir1.10.0_3

Install

Binary package:

pkg install py311-scandir

From DPorts:

cd /usr/dports/sysutils/py-scandir && make install clean

Dependencies

Run dependencies 1

No port depends on this one.