Is there any way to zip a file so that when it is downloaded and unzipped a second time, the directory name is the same?
Desired Outcome:
foo.zip
and unzips to a directory that is foo
.foo.zip(1)
. This time when the file is unzipped it is still foo
and NOT foo(1)
. The user is asked to overwrite existing file.a way to zip it so that the directory name is forced no matter what the OS and or program is
No, this is impossible for multiple reasons. If the zip standard had such a policy ...
<>:"/\|?*
" and "no CON
, PRN
, AUX
, NUL
, COM1
, ..." for Windows, but also ridiculous things like "only 8 characters" for old FAT file systems.