I'm wanting to add .gz files as supported types for Archive.
I added gz as a supported type in scfg > File Options
but I get the following:
bbs@bbs:/sbbs/mods$ jsexec -n archive read /var/log/sbbs/web.sbbs.log.1.gz !JavaScript /sbbs/exec/archive.js line 49: Error: archive_read_open_filename() returned -30: Unrecognized archive format !Module (archive) set exit_code: 1
I've obviously missed a step but I'm not sure what. Open to suggestions?
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
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
"gz" files are not an archive? "gz" is a compression method and represents a single file compressed.
| Sysop: | Kurisu |
|---|---|
| Location: | Memphis, TN |
| Users: | 10 |
| Nodes: | 32 (0 / 32) |
| Uptime: | 100:10:16 |
| Calls: | 83 |
| Files: | 166 |
| D/L today: |
13 files (1,307K bytes) |
| Messages: | 39,090 |