io_fs

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(path string) string

func IsExist

func IsExist(path string) bool

func IsNotExist

func IsNotExist(path string) bool
func IsSymlink(path string) bool

func MkdirAll

func MkdirAll(path string, perm fs.FileMode)

func ReadFile

func ReadFile(name string) []byte
func ReadLink(name string) string
func Symlink(oldname string, newname string)

func WriteFile

func WriteFile(name string, data []byte, perm fs.FileMode)

Types

type Content

type Content map[string]*Folder

func (Content) Read

func (receiver Content) Read()

func (Content) WriteTemp

func (receiver Content) WriteTemp()

type Entry

type Entry struct {
	DirEntry fs.DirEntry
	Content  []byte
	// Symlink   *SymlinkEntry
	Target    string
	IsChanged bool
}

type EntryList

type EntryList map[string]*Entry

type Folder

type Folder struct {
	Abs     string
	Entries EntryList
}

Jump to

Keyboard shortcuts

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