I'm developing a zip, odt files explorer. There are some files (zip) that I can explore and unzip them but others, I can explore them but I can not unzip them. The program causes a 'EFCreateError' exception with the message:
Unable to create file "z:\unzip/folder/file01.txt"
because the path of files inside the zip/odt archive is formed with / instead of \.
Anyone knows the way to solve this?
i'm using windows 7,
lazarus 0.9.29 - FPC 2.4.0 - SVN:27358 - Date: 2010-09-14
TUnZipper
According to the zip file specification "/" is the path separator.
If your zip file uses "\" character instead, then it is technically an invalid file.
However, many zip programs and libraries accept "\", too.
Are you sure the problem is related to unzipping at all? Do you have drive z:? Do you have write access there?
IIRC Windows itself accepts both "/" and "\" as path separators in many situations.
Juha