Skip to content

Commit

Permalink
devel/py-scantree: New port: flexible recursive directory iterator
Browse files Browse the repository at this point in the history
Recursive directory iterator supporting:

- flexible filtering including wildcard path matching
- in memory representation of file-tree (for repeated access)
- efficient access to directory entry properties (posix.DirEntry interface)
  extended with real path and path relative to the recursion root directory
- detection and handling of cyclic symlinks
  • Loading branch information
alonsobsd committed Apr 20, 2023
1 parent 071ea8e commit 639cb7d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -5440,6 +5440,7 @@
SUBDIR += py-saneyaml
SUBDIR += py-sarge
SUBDIR += py-sarif-om
SUBDIR += py-scantree
SUBDIR += py-schedule
SUBDIR += py-scheduler
SUBDIR += py-schema
Expand Down
23 changes: 23 additions & 0 deletions devel/py-scantree/Makefile
@@ -0,0 +1,23 @@
PORTNAME= scantree
DISTVERSION= 0.0.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= acm@FreeBSD.org
COMMENT= flexible recursive directory iterator
WWW= https://github.com/andhus/scantree

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scandir>0:sysutils/py-scandir@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathspec>0:devel/py-pathspec@${PY_FLAVOR}

USES= python:3.7+
USE_PYTHON= autoplist distutils

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-scantree/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1681956449
SHA256 (scantree-0.0.1.tar.gz) = 2a8b163de0e4b2f9e4f37f8caf3f0b265172bbf174111e1bebc7955581895b39
SIZE (scantree-0.0.1.tar.gz) = 13449
7 changes: 7 additions & 0 deletions devel/py-scantree/pkg-descr
@@ -0,0 +1,7 @@
Recursive directory iterator supporting:

- flexible filtering including wildcard path matching
- in memory representation of file-tree (for repeated access)
- efficient access to directory entry properties (posix.DirEntry interface)
extended with real path and path relative to the recursion root directory
- detection and handling of cyclic symlinks

0 comments on commit 639cb7d

Please sign in to comment.