fs

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 10 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)

func Create

func Create(filename string) *os.File

func CreateOpt

func CreateOpt(filename string) (*os.File, error)

func DirSize

func DirSize(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 FileModTime

func FileModTime(path string) time.Time

func FileSize

func FileSize(path string) int64

func IsDir

func IsDir(path string) bool

func MakeDir

func MakeDir(dir string)

func Read

func Read(path string) []byte

func ReadCVS

func ReadCVS(path string) [][]string

func ReadDir

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

func ReadLines

func ReadLines(path string) []string

func ReadString

func ReadString(path string) string

func Remove

func Remove(path string)

func RemoveExt

func RemoveExt(path string) string

func Rename

func Rename(path, newName string)

func ReplaceExt

func ReplaceExt(path string, ext string) string

func Write

func Write(path string, content []byte)

func WriteCVS

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

func WriteString

func WriteString(path string, content string)

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 added in v0.1.4

func (this List) Get(dir string) []string

Jump to

Keyboard shortcuts

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