Skip to main content

Python3 Apache Ant path patterns matching library

Project description

Usage:

Select file paths matched the specified ant path pattern :

>>> ds = AntPatternDirectoryScanner("foo/bar", "foo/**/*.txt")
... for filename in ds.scan():
...    print(filename)
...

Copy matched files into target directory:

>>> ds = AntPatternDirectoryScanner("foo/bar", "data/**/*.txt")
... ds.copy("target/dir")

Installation:

(A): Installation with pip

umask 022
sudo pip3 install antfs

# Upgrading:
sudo pip3 install antfs --upgrade

(B): Installation from sources

umask 022
git clone https://github.com/Softmotions/antfs.git
cd ./antfs
sudo python3 ./setup.py install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antfs-1.0.4.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file antfs-1.0.4.tar.gz.

File metadata

  • Download URL: antfs-1.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for antfs-1.0.4.tar.gz
Algorithm Hash digest
SHA256 b5d9c73810243b70cf49675f5cd73e0293f513eef7d7ffbcb869e5d48c481c32
MD5 f6e42a20e5a21094a188f754d2dee835
BLAKE2b-256 0770da8052faecb54efbdd4a1335b306d1ceba9d84f68b7ca66790cde56945a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page