SC zip_extract anomaly
Posted: 28 Aug 2022 01:30
I noticed that when WinRAR/7z is used as extractor and a single item filename with spaces is passed it needs to be quoted, (when more than 1 filename is passed it is ok unquoted though), but when using default ZipFldr instead, it fails when single items are quoted. Optimal solution would be no quotes req.
Code: Select all
zip_extract(<curitem>, , "a b.txt"); // FAIL WITH RAR/7z OK WITH ZIPFLDR
zip_extract(<curitem>, , """a b.txt"""); // OK WITH RAR/7z FAIL WITH ZIPFLDR
zip_extract(<curitem>, , "a b.txt|c d.txt"); // OK WITH BOTH