例如,我的桌面上有一个zip文件:/Users/user/Desktop/222.zip
,通过右键单击带有“压缩”菜单项的菜单创建。文件夹结构如下:
Store - 2018-07-09 16:46:52 drwxr-xr-x 0 0 222
Deflate - 2018-07-09 16:46:52 -rw-r--r-- 6148 229 222/.DS_Store
Store - 2018-07-09 17:46:46 drwxrwxr-x 0 0 __MACOSX
Store - 2018-07-09 17:46:46 drwxrwxr-x 0 0 __MACOSX/222
Deflate - 2018-07-09 16:46:52 -rw-r--r-- 120 53 __MACOSX/222/._.DS_Store
Store - 2018-07-09 16:54:28 drwxr-xr-x 0 0 222/111
Deflate - 2018-07-09 16:54:28 -rw-r--r-- 6148 259 222/111/.DS_Store
Store - 2018-07-09 17:46:46 drwxrwxr-x 0 0 __MACOSX/222/111
Deflate - 2018-07-09 16:54:28 -rw-r--r-- 120 53 __MACOSX/222/111/._.DS_Store
Deflate - 2017-08-22 14:38:18 -rw-r--r-- 1349 677 222/111/gitHelp.txt
Deflate - 2017-08-22 14:38:18 -rw-r--r-- 1261 1177 __MACOSX/222/111/._gitHelp.txt
现在,我想重命名文件222/111/gitHelp.txt
,所以我使用命令./7z rn /Users/user/Desktop/222.zip 222/111/gitHelp.txt 222/111/gitHelp2.txt
来执行此操作,但是失败并出现错误:
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
Open archive: /Users/user/Desktop/222.zip
--
Path = /Users/user/Desktop/222.zip
Type = zip
Physical Size = 4074
Updating archive: /Users/user/Desktop/222.zip
Items to compress: 0
System ERROR:
E_NOTIMPL
如果使用7zip二进制文件创建222.zip,则相同的命令可以正常工作。那么有人知道该怎么做吗?