I did so far only check ZIP format and Windows.
Purebasic Version 5.70LTS 64bit Windows
Code: Select all
; This demo shows a packer lib bug if run under MS windows7 professional SP1 ; a file with a path name in the PackedFilename is added : test\PureBasic.chm ; this file IS indeed added in a subfolder "test" in the zip file. ; BUT if this pack is later examined with ExaminePack(), the PackEntryName() returns a "/" as path seperator, even if all operations are done under windows where the path seperator is "\" ; UseZipPacker() Debug "compiler home : " + #PB_Compiler_Home packer = CreatePack(#PB_Any,"c:\test.zip",#PB_PackerPlugin_Zip) If packer AddPackFile(packer,#PB_Compiler_Home+"PureBasic.chm","test\PureBasic.chm") ClosePack(packer) EndIf If OpenPack(0,"c:\test.zip",#PB_PackerPlugin_Zip) ExaminePack(0) While NextPackEntry(0) Debug "Name: " + PackEntryName(0) + ", Size: " + PackEntrySize(0) Wend ClosePack(0) EndIf