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.

Files for antfs, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size antfs-1.0.4.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page