fileutils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExtSplit added in v0.0.6

func PathExtSplit(file string) (string, string)

func ReadAll added in v0.0.5

func ReadAll(path string) (string, error)

Types

type FilePath

type FilePath struct {
	Path string
	// contains filtered or unexported fields
}

func (*FilePath) Exists

func (fp *FilePath) Exists() bool

func (*FilePath) IsDir

func (fp *FilePath) IsDir() bool

func (*FilePath) IsFile

func (fp *FilePath) IsFile() bool

func (*FilePath) MakeDirs

func (fp *FilePath) MakeDirs() error

func (*FilePath) Mode added in v0.0.6

func (fp *FilePath) Mode() fs.FileMode

func (*FilePath) Name added in v0.0.6

func (fp *FilePath) Name() string

func (*FilePath) ReadAll added in v0.0.5

func (fp *FilePath) ReadAll() (string, error)

func (*FilePath) ReadLines

func (fp *FilePath) ReadLines() ([]string, error)

func (*FilePath) Size added in v0.0.6

func (fp *FilePath) Size() int64

Jump to

Keyboard shortcuts

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