filelock

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MulanPSL-2.0 Imports: 8 Imported by: 2

README

FileLock

💡 Introduction

Read and write files with lock.

🙏 Acknowledgement

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dest string) (err error)

func CopyNewtimes added in v0.0.5

func CopyNewtimes(src, dest string) (err error)

func Move

func Move(src, dest string) (err error)

func ReadFile

func ReadFile(filePath string) (data []byte, err error)

func Remove

func Remove(p string) (err error)

func RoboCopy

func RoboCopy(src, dest string) (err error)

func WriteFile

func WriteFile(filePath string, data []byte) (err error)

func WriteFileByReader

func WriteFileByReader(filePath string, reader io.Reader) (err error)

func WriteFileWithoutChangeTime

func WriteFileWithoutChangeTime(filePath string, data []byte) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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