file

package
v0.0.0-...-48fba18 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTypeF

func FindTypeF(path string, outAbs bool) ([]string, error)

FindTypeF 等同于命令 find <path> -type f,第二参数是返回数据是否拼接为绝对路径

func IsDir

func IsDir(path string) bool

IsDir 判断所给路径是否为文件夹

func IsExist

func IsExist(path string) bool

IsExist 判断所给路径文件或目录是否存在

func IsFile

func IsFile(path string) bool

IsFile 判断所给路径是否为文件

func Sha256sum

func Sha256sum(file string) (string, error)

Sha256sum 等同于命令sha256sum <file>

Types

This section is empty.

Jump to

Keyboard shortcuts

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