disk

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v0.0.14

func Copy(src, dst string)

Copy a file

func CreateFile

func CreateFile(filePath string, content []byte)

CreateFile create a file

func DeleteFile added in v0.0.1

func DeleteFile(filePath string)

DeleteFile deletes a file

func ExistsPath

func ExistsPath(path string) bool

ExistsPath return if path exits

Types

type FileChangedNotifier

type FileChangedNotifier interface {
	Subscribe(subscribeFunc func())
}

FileChangedNotifier defines and object that observe changes of a file

func NewFileChangedNotifier

func NewFileChangedNotifier(filePath string, errorCatcher errors.ErrorCatcher, errorThrower errors.ErrorThrower) FileChangedNotifier

NewFileChangedNotifier returns a FileChangedNotifier

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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