file

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSize added in v0.3.2

func CalcSize(path string) (int64, error)

CalcSize calculates size of specified file/dir. Returns byte.

func CheckPathExists

func CheckPathExists(path string) (bool, error)

CheckPathExists check if file exists.

func CheckYamlReadable

func CheckYamlReadable(addr *string) (bool, error)

CheckYamlReadable check if file is readable;

func CreateDir added in v0.2.2

func CreateDir(filePath string) error

CreateDir create dir recursively.

func CreateFile added in v0.2.2

func CreateFile(filepath string) error

CreateFile creates file on specified path.

func GetCwd added in v0.2.2

func GetCwd() string

GetCwd returns current path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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