fileutil

package
v0.0.0-...-5807ea9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExist

func FileExist(path string) bool

FileExist 判断所给路径文件/文件夹是否存在

func IsDir

func IsDir(filePath string) bool

判断所给路径是否为文件夹 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 returns true if given path is a file, or returns false when it's a directory or does not exist.

func PathExists

func PathExists(filePath string) bool

PathExists return true if given path 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