Skip to content

Commit

Permalink
Allow extraction of rar archives
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux123123 committed Dec 27, 2024
1 parent 20a48d8 commit f7b330c
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 @@ -84,7 +84,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:
// Returning pointer in neccessary, as only on pointer there is implementation of ReadDir method
return &archives.ArchiveFS{Stream: io.NewSectionReader(f, 0, info.Size()), Format: ff, Context: ctx}, nil
case archives.Compression:
Expand Down

0 comments on commit f7b330c

Please sign in to comment.