- 论坛徽章:
- 33
|
回复 1# karlzheng_cu
希望对你有帮助. 我没试过.- -D skip restoration of timestamps for extracted items. Normally,
- unzip tries to restore all meta-information for extracted items
- that are supplied in the Zip archive (and do not require privi-
- leges or impose a security risk). By specifying -D, unzip is
- told to suppress restoration of timestamps for directories
- explicitly created from Zip archive entries. This option only
- applies to ports that support setting timestamps for directories
- (currently ATheOS, BeOS, MacOS, OS/2, Unix, VMS, Win32, for
- other unzip ports, -D has no effect). The duplicated option -DD
- forces suppression of timestamp restoration for all extracted
- entries (files and directories). This option results in setting
- the timestamps for all extracted entries to the current time.
- On VMS, the default setting for this option is -D for consis-
- tency with the behaviour of BACKUP: file timestamps are
- restored, timestamps of extracted directories are left at the
- current time. To enable restoration of directory timestamps,
- the negated option --D should be specified. On VMS, the option
- -D disables timestamp restoration for all extracted Zip archive
- items. (Here, a single -D on the command line combines with the
- default -D to do what an explicit -DD does on other systems.)
复制代码 |
|