fsutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExt

func FileExt(path string) string

FileExt 返回文件扩展名,如 foo.png 返回 .png

func FileName

func FileName(fp string) string

FileName 只返回文件名称

func FileSize

func FileSize(path string) (int64, error)

FileSize 返回文件大小

func HumanReadableSize

func HumanReadableSize(n int64) string

HumanReadableSize 可读大小

func IsDir

func IsDir(dir string) bool

IsDir 检查是否目录

func IsFile

func IsFile(filename string) bool

IsFile 检查是否文件

func MD5File

func MD5File(fn string) (string, error)

MD5File md5文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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