filesystem

package
v0.0.0-...-4402e7d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	// contains filtered or unexported fields
}

Filesystem represents the filesystem

func NewFilesystem

func NewFilesystem(fs afero.Fs) *Filesystem

NewFilesystem creates a new filesystem

func (*Filesystem) MkdirAll

func (f *Filesystem) MkdirAll(path string, perm os.FileMode) error

MkdirAll creates a directory

func (*Filesystem) RemoveAll

func (f *Filesystem) RemoveAll(path string) error

RemoveAll removes a directory

func (*Filesystem) Stat

func (f *Filesystem) Stat(path string) (os.FileInfo, error)

Stat returns the file information

func (*Filesystem) TempDir

func (f *Filesystem) TempDir(dir, prefix string) (string, error)

TempDir creates a temporary directory

Jump to

Keyboard shortcuts

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