Zip directory
BlitzMax Forums/BlitzMax Programming/Zip directory
| ||
Hi, is there some code or a module out there to zip a complete directory including subfolders into a single file? I have koriolis.zipstream running here, but have no idea how to add a folder. |
| ||
I use GMan's ZipEngine, but it sounds like your problem is conceptual rather than modulue-based. You see, the zip format does not consider folders. It only looks at files. So to zip a complete directory, simply add all the files in the directory. To include all subfolders, make it add files recursively. The file locations are stored, and the directory structure is restored when you unzip (assuming settings are correct) but you have to deal with files, not folders, to make it happen. |
| ||
but it sounds like your problem is conceptual rather than modulue-based That's correct. Taking a look at gmans mod. Thank you. |