Provides a set of user-friendly file manipulation commands to simplify common file management tasks.
python setup.py install
Provide four commands: zcopy, zmove, zdel, zrecycle
$ python -m FileCommands -l
Supported Commands:
zcopy
zmove
zdel
zrecycle
type <command> -h for more details
$zcopy -h
usage: zcopy [-h] src dst
copy files to destination
positional arguments:
src source, can be file or folder
dst destination
optional arguments:
-h, --help show this help message and exit
use python fnmatch for wildcards. the supported characters as follows:
Pattern | Meaning |
---|---|
* |
matches everything |
? |
matches any single character |
[seq] |
matches any character in seq |
[!seq] |
matches any character not in seq |
copy all the .html files to new path
zcopy *.html new_path
delete all the .jpg and send to trash
zrecycle *.jpg