用python写的小工具
有时候,想要对一个目录里的文件进行搜索或者分类操作往往是一件痛苦的事情,下面这个程序的目的是将目录下的文件树以某种分类规则进行排列。
usage: classify.py [-h] [-t {ext,mtime,back}] directory
positional arguments:
directory 目标目录路径
optional arguments:
-h, --help show this help message and exit
-t {ext,mtime,back}, --type {ext,mtime,back}
├── bin<br/> ├── css<br/> ├── db<br/> ├── default<br/> ├── gif<br/> ├── gitattributes<br/> ├── gitignore<br/> ├── htaccess<br/> ├── jar<br/> ├── js<br/> ├── json<br/> ├── lib<br/> ├── log<br/> ├── md<br/> ├── php<br/> └── yml<br/>`