Re: Adding supported_formats to Archive
By: nelgin to Digital Man on Sat Oct 03 2026 03:50 am
I'm wanting to add .gz files as supported types for Archive.
I added gz as a supported type in scfg > File Options
$ jsexec -n -r 'Archive.supported_formats.forEach(function(f){ print(f); })' zip
7z
tgz
gz
You're still restricted by what libarchive supports and it doesn't support raw 'gzip' (gz) files.
https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
--
digital man (rob)
Synchronet "Real Fact" #111:
Weedpuller "World Of My Own"
http://youtu.be/V-gmT5N6kYo
Norco, CA WX: 105.2�F, 16.0% humidity, 2 mph SSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)