Skip to content

Commit

Permalink
Allow for rar Extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenQVD0 authored Dec 27, 2024
1 parent f7361e8 commit 863f37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/filesystem/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (fs *Filesystem) archiverFileSystem(ctx context.Context, p string) (iofs.FS
// while ArchiveFS can't.
// zip.Reader doesn't suffer from issue #330 and #310 according to local test (but they should be fixed anyway)
return zip.NewReader(f, info.Size())
case archives.Archival:
case archives.Extraction:
return &archives.ArchiveFS{Stream: io.NewSectionReader(f, 0, info.Size()), Format: ff.(archives.Extractor), Context: ctx}, nil
case archives.Compression:
return archiverext.FileFS{File: f, Compression: ff}, nil
Expand Down

0 comments on commit 863f37d

Please sign in to comment.