Door Games Unlimited

Welcome, Guest.


Subject: Re: Adding supported_formats to Archive Date: Sat Oct 03 2026 23:55:44
From: nelgin To: Digital Man

On Sat, 3 Oct 2026 17:13:21 -0700
"Digital Man" (VERT) <VERT!Digital.Man@endofthelinebbs.com> wrote:

>   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

That's interesting because I'm looking at
https://github.com/libarchive/libarchive and it says

The library also detects and handles any of the following before
evaluating the archive:

uuencoded files
files with RPM wrapper
** gzip compression **
bzip2 compression
compress/LZW compression
lzma, lzip, and xz compression
lz4 compression
lzop compression
zstandard compression

it further states:
Libarchive's automatic support for decompression can be used without
archiving by explicitly selecting the "raw" and "empty" formats.




So in my mind it's saying libarchive should be able to handle gz
without the need for there being an archive. Am I misreading it?
-- 
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23
---
 * Synchronet * End Of The Line BBS - endofthelinebbs.com

Previous Message       Next Message
In Reply To: Adding supported_formats to Archive (Digital Man)