BSD Ports

sysutils/py-scandir 1.10.0_2 MidnightBSD

Fast and featureful directory iterator

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3
Categories
sysutils, python

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
MidnightBSDsysutils/py-scandir1.10.0_2
FreeBSDsysutils/py-scandir1.10.0_3
DragonFlysysutils/py-scandir1.10.0_3
HardenedBSDsysutils/py-scandir1.10.0_3
GhostBSDsysutils/py-scandir1.10.0_3

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}scandir

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}scandir>0:sysutils/py-scandir

Dependencies

As this port's Makefile names them.

Build 2

Build dependencies 2

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
scandir-1.10.0.tar.gz333114d4631f6062e658e9007ab3149a9b914f3548cb38bfb021c64f39a025ce578ae
Master sites 1
  • PYPI