zipfs

package
v2.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderToFileInfo

func HeaderToFileInfo(out *fuse.Attr, h *tar.Header)

HeaderToFileInfo fills a fuse.Attr struct from a tar.Header.

func NewArchiveFileSystem

func NewArchiveFileSystem(name string) (root fs.InodeEmbedder, err error)

func NewTarCompressedTree

func NewTarCompressedTree(name string, format string) (fs.InodeEmbedder, error)

NewTarCompressedTree creates the tree of a tar file as a FUSE InodeEmbedder. The inode can either be mounted as the root of a FUSE mount, or added as a child to some other FUSE tree.

func NewZipTree

func NewZipTree(name string) (fs.InodeEmbedder, error)

NewZipTree creates a new file-system for the zip file named name.

Types

type MultiZipFs

type MultiZipFs struct {
	fs.Inode
}

MultiZipFs is a filesystem that mounts zipfiles.

func (*MultiZipFs) OnAdd

func (root *MultiZipFs) OnAdd(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL