需求:zip打包某个目录但是要排除目录下某个文件或者某个目录。
zip -r DeepLabV3Plus-Pytorch.zip DeepLabV3Plus-Pytorch -x 'DeepLabV3Plus-Pytorch/training_logs/checkpoint/*'
-x参数后加要排除的文件或目录的完整路径。注意引号不可少
需求:zip打包某个目录但是要排除目录下某个文件或者某个目录。
zip -r DeepLabV3Plus-Pytorch.zip DeepLabV3Plus-Pytorch -x 'DeepLabV3Plus-Pytorch/training_logs/checkpoint/*'
-x参数后加要排除的文件或目录的完整路径。注意引号不可少