disk

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 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, subscriptions eventsmanager.Subscriptions, publisher eventsmanager.Publisher) 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