ufs

package
v0.7.40 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExt

func AddExt(path string, ext string) string

func Chmod

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

func ChmodStrict

func ChmodStrict(name string, mode os.FileMode)

func Create

func Create(filename string) (f *os.File, err error)

func CreateStrict

func CreateStrict(filename string) *os.File

func DirSize

func DirSize(path string) (size int64, err error)

func DirSizeStrict

func DirSizeStrict(path string) int64

func DotExt

func DotExt(ext string) string

func EqualExt

func EqualExt(extA, extB string) bool

func Exist

func Exist(path string) bool

func Ext

func Ext(path string) string

func FileModifyTime

func FileModifyTime(path string) (time.Time, error)

func FileModifyTimeStrict

func FileModifyTimeStrict(path string) time.Time

func FileSize

func FileSize(path string) (int64, error)

func FileSizeStrict

func FileSizeStrict(path string) int64

func ForEachLine

func ForEachLine(path string, fn func(string)) error

func IsDir

func IsDir(path string) (bool, error)

func IsDirStrict

func IsDirStrict(path string) bool

func MakeDir

func MakeDir(dir string) error

func MakeDirStrict

func MakeDirStrict(dir string)

func Read

func Read(path string) ([]byte, error)

func ReadCSV

func ReadCSV(path string) (records [][]string, err error)

func ReadCSVstrict

func ReadCSVstrict(path string) [][]string

func ReadDir

func ReadDir(dir string, ignorAccessDenied bool) (files []os.FileInfo, err error)

func ReadDirStrict

func ReadDirStrict(dir string, ignorAccessDenied bool) []os.FileInfo

func ReadLines

func ReadLines(path string) ([]string, error)

func ReadLinesStrict

func ReadLinesStrict(path string) []string

func ReadStrict

func ReadStrict(path string) []byte

func ReadString

func ReadString(path string) (string, error)

func ReadStringStrict

func ReadStringStrict(path string) string

func Remove

func Remove(path string) error

func RemoveExt

func RemoveExt(path string) string

func RemoveStrict

func RemoveStrict(path string)

func Rename

func Rename(path, newName string) error

func RenameStrict

func RenameStrict(path, newName string)

func ReplaceExt

func ReplaceExt(path string, ext string) string

func Write

func Write(path string, content []byte) error

func WriteCSV

func WriteCSV(path string, records [][]string) error

func WriteCSVstrict

func WriteCSVstrict(path string, records [][]string)

func WriteStrict

func WriteStrict(path string, content []byte)

func WriteString

func WriteString(path string, content string) error

Types

type List

type List struct {
	Files             bool
	Folders           bool
	Extension         string
	ExtensionList     []string
	Recursive         bool
	IgnorAccessDenied bool
	RelativePath      bool
	// contains filtered or unexported fields
}

func (List) Get

func (o List) Get(dir string) (result []string, err error)

func (List) GetStrict

func (o List) GetStrict(dir string) []string

Jump to

Keyboard shortcuts

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