subdir

package module
v0.0.0-...-d79f386 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 3 Imported by: 0

README

subdir

Subdirectory filesystem based on os package, similar to os.DirFs with more methods

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir string

func New

func New(path string, perm fs.FileMode) (Dir, error)

func (Dir) Create

func (dir Dir) Create(name string) (*os.File, error)

func (Dir) DeleteSelf

func (dir Dir) DeleteSelf() error

func (Dir) List

func (dir Dir) List() ([]os.DirEntry, error)

func (Dir) MkdirAll

func (dir Dir) MkdirAll(path string, perm os.FileMode) error

func (Dir) Open

func (dir Dir) Open(name string) (*os.File, error)

func (Dir) OpenFile

func (dir Dir) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

func (Dir) Remove

func (dir Dir) Remove(name string) error

func (Dir) RemoveAll

func (dir Dir) RemoveAll(name string) error

func (Dir) Stat

func (dir Dir) Stat(name string) (os.FileInfo, error)

func (Dir) String

func (dir Dir) String() string

func (Dir) SubDir

func (dir Dir) SubDir(path string) (Dir, error)

func (Dir) Walk

func (dir Dir) Walk(fn fs.WalkDirFunc) error

Jump to

Keyboard shortcuts

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