sysutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(p string) bool

func FileExists

func FileExists(p string) bool

func HomeDir

func HomeDir() string

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile(path string) *File

func (*File) Exists

func (f *File) Exists() bool

func (*File) Ext

func (f *File) Ext() string

func (*File) FileName

func (f *File) FileName() string

func (*File) FileNameWithoutExt

func (f *File) FileNameWithoutExt() string

func (*File) Path

func (f *File) Path() string

func (*File) Read

func (f *File) Read() ([]byte, error)

func (*File) ToSlash

func (f *File) ToSlash() string

func (*File) Write

func (f *File) Write(data []byte, perm fs.FileMode) error

type FileNotFoundError

type FileNotFoundError struct {
	// contains filtered or unexported fields
}

func NewFileNotFoundError

func NewFileNotFoundError(file *File) *FileNotFoundError

func (*FileNotFoundError) Error

func (e *FileNotFoundError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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