这个报错的原因是要压缩的文件是个符号链接文件,但指向的文件不存在,
解决方法是加上-y参数,意思是store symbolic links as the link instead of the referenced file,也就是保存符号链接。
zip -r -y test.zip test/
参考:“zip warning: name not matched” while compressing a directory – Unix & Linux Stack Exchange
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/219057.html原文链接:https://javaforall.net