file

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(src []byte) (*mimetype.MIME, error)

func DetectFile

func DetectFile(filePath string) (*mimetype.MIME, error)

func DetectReader

func DetectReader(r io.Reader) (*mimetype.MIME, error)

func Exists

func Exists(path string) bool

判断给定的路径文件/文件夹是否存在

func GetSystemTmp

func GetSystemTmp() string

GetSystemTmp

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹 如果不存在,也是 false

func IsFile

func IsFile(path string) bool

判断所给路径是否为文件 同样使用 IsDir 如果不存在的也是 false, 因为这个地方只设计了一个返回值

Types

This section is empty.

Jump to

Keyboard shortcuts

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