fileutil

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirsUnder

func DirsUnder(dirPath string) ([]string, error)

list dirs under dirPath

func FileMTime

func FileMTime(fp string) (int64, error)

get file modified time

func FileSize

func FileSize(fp string) (int64, error)

get file size as how many bytes

func IsDir

func IsDir(fp string) bool

func IsExist

func IsExist(fp string) bool

IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.

func IsFile

func IsFile(fp string) bool

IsFile checks whether the path is a file, it returns false when it's a directory or does not exist.

func ReadBytes

func ReadBytes(cpath string) ([]byte, error)

func ReadYaml

func ReadYaml(cpath string, cptr interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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