fileutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DirMode  = 0755
	FileMode = 0755
)

Variables

This section is empty.

Functions

func AllocateFileSpace

func AllocateFileSpace(f *os.File, offset, size int64) error

func CreateDirAndTouch

func CreateDirAndTouch(dir string) error

func Datasync

func Datasync(f *os.File) error

func Exist

func Exist(filePath string) bool

func FileReadUint64

func FileReadUint64(r io.Reader, buf []byte) (uint64, error)

func FileSize

func FileSize(filePath string) (int64, error)

func FileWriteUint64

func FileWriteUint64(w io.Writer, buf []byte, v uint64) error

func IsDirWriteable

func IsDirWriteable(dir string) error

func Sync

func Sync(f *os.File) error

func SyncDir

func SyncDir(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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