I'm trying to extract some files from a Zip file, but the FastZip.ExtractZip
method I was using is having some issues, for example:
Output location: C:\testing\output\
File 1: PhysicalMemory/idx - this is a file, but is created as a directory
File 2: c:/pagefile.sys/00000052 - This is a directory, but is created as a file
File 3: c:/pagefile.sys/00000052/index - This is a file, but is created as a directory
I'm not sure how to correctly identify these as files or directories, as some of the files don't have file extensions, which the FastZip package seems to use to identify files.
The ZipEntry
class has a isDirectory
method, but it's returning false for every entry, so I can't use that.
Does anyone have any suggestions on how to approach this?