filex

package
v0.0.0-...-afa1935 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePathExists

func FilePathExists(filePath string) bool

FilePathExists Judge whether the given path file / folder exists.

func GetFileSize

func GetFileSize(filename string) int64

GetFileSize 获取文件路径

func GetFullPath

func GetFullPath(path string) string

GetFullPath 获取绝对路径

func IsDir

func IsDir(filePath string) bool

IsDir 判断所给路径是否为文件夹 IsDir returns true if given path is a dir, or returns false when it's a directory or does not exist.

func IsFile

func IsFile(filePath string) bool

IsFile 判断所给路径是否为文件 IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

func ReadFile

func ReadFile(path string) string

ReadFile 读取文件

func Sha1f

func Sha1f(filename string) (string, error)

Sha1f return file sha1 encode

Types

This section is empty.

Jump to

Keyboard shortcuts

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