osfs

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs billy.Filesystem) billy.Filesystem

NewChangeOSFS wraps billy osfs to add the change interface.

Types

type COS

type COS struct {
	billy.Filesystem
}

COS or OSFS + Change wraps a billy.FS to not fail the `Change` interface.

func (COS) Chmod

func (fs COS) Chmod(name string, mode os.FileMode) error

Chmod changes mode.

func (COS) Chown

func (fs COS) Chown(name string, uid, gid int) error

Chown changes ownership.

func (COS) Chtimes

func (fs COS) Chtimes(name string, atime time.Time, mtime time.Time) error

Chtimes changes access time.

func (COS) Lchown

func (fs COS) Lchown(name string, uid, gid int) error

Lchown changes ownership.

func (fs COS) Link(path string, link string) error

func (COS) Mkfifo

func (fs COS) Mkfifo(path string, mode uint32) error

func (COS) Mknod

func (fs COS) Mknod(path string, mode uint32, major uint32, minor uint32) error

func (COS) Socket

func (fs COS) Socket(path string) error

Jump to

Keyboard shortcuts

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