file

package
v0.0.0-...-120cf50 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(filePathName string) (*os.File, error)

创建文件

func Exist

func Exist(arg string) bool

判断文件是否存在

func FullName

func FullName(filePathName string) string

获得文件名

func LoadJsonConfig

func LoadJsonConfig(file_path string, conf interface{}) error

加载json格式的配置文件

func MD5

func MD5(filePath string) ([]byte, error)

计算md5

func NameAndExt

func NameAndExt(filePathName string) (string, string)

获得文件名 和 类型

func Size

func Size(filePathName string) (core.FSIZE, error)

获取文件的实际大小;

Types

This section is empty.

Jump to

Keyboard shortcuts

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