tar

package
v0.0.0-...-8a6d2ef Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(inner filesystem.FileSystem, cache gcache.Cache, cachePrefix string) filesystem.FileSystem

Wrap wraps a filesystem with a tar or tar.gz file opener so it a tar or tar.gz file is present in a filesystem, it's inner content can be browsed as a filesystem

Types

type FileSystem

type FileSystem struct {
	Closer io.Closer
	// contains filtered or unexported fields
}

func New

func New(file filesystem.File) (*FileSystem, error)

func (*FileSystem) Close

func (f *FileSystem) Close() error

func (*FileSystem) Join

func (f *FileSystem) Join(elem ...string) string

Join implements the FileSystem Join method,

func (*FileSystem) Lstat

func (f *FileSystem) Lstat(name string) (os.FileInfo, error)

Lstat implements the FileSystem Lstat method, it returns fileinfo for a given path

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (filesystem.File, error)

func (*FileSystem) ReadDir

func (f *FileSystem) ReadDir(dirname string) ([]os.FileInfo, error)

ReadDir implements the FileSystem ReadDir method, It returns a list of fileinfos in a given path

Jump to

Keyboard shortcuts

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