Closed San-greal closed 4 months ago
Am I understanding correctly that the error only happens during unzipping, when trying to create both a test
file and a test/
directory?
I'm fairly certain most mainstream OS+filesystem combinations don't allow this. On Unix-like systems, directories are just another kind of file, so this would be like trying to name two files the same thing.
The zip format file is generated with the following code:
The unzip operation is performed by:
So the following results appear:
There is no problem when the directory created is not
test/test1
, for examplea/test1
is correct. Is this caused by the inability to distinguish between files and directories?