Python3 Apache Ant path patterns matching library
Project description
antfs: Python3 `Ant <http://ant.apache.org/manual/dirtasks.html#patterns>`_ path matching library
===================================================================
============
Usage:
============
Select file paths matched the specified `ant path pattern <http://ant.apache.org/manual/dirtasks.html#patterns>`_ :
>>> ds = AntPatternDirectoryScanner("foo/bar", "foo/**/*.txt")
... for filename in ds.scan():
... print(filename)
...
Copy matched files into target directory:
>>> ds = AntPatternDirectoryScanner("some/dir/**")
... ds.copy("target/dir")
==============
Installation:
==============
**************************
(A): Installation with pip
**************************
::
umask 022
sudo pip3 install antfs
# Upgrading:
sudo pip3 install pyejdb --upgrade
*******************************
(B): Installation from sources
*******************************
::
umask 022
git clone https://github.com/Softmotions/antfs.git
cd ./antfs
sudo python3 ./setup.py install
===================================================================
============
Usage:
============
Select file paths matched the specified `ant path pattern <http://ant.apache.org/manual/dirtasks.html#patterns>`_ :
>>> ds = AntPatternDirectoryScanner("foo/bar", "foo/**/*.txt")
... for filename in ds.scan():
... print(filename)
...
Copy matched files into target directory:
>>> ds = AntPatternDirectoryScanner("some/dir/**")
... ds.copy("target/dir")
==============
Installation:
==============
**************************
(A): Installation with pip
**************************
::
umask 022
sudo pip3 install antfs
# Upgrading:
sudo pip3 install pyejdb --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.0.tar.gz
(4.7 kB
view hashes)