filex

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir added in v0.2.5

func CopyDir(src string, dst string) error

Dir copies a whole directory recursively

func CopyFile added in v0.2.5

func CopyFile(src, dst string) error

File copies a single file from src to dst

func IsAllowFileExt

func IsAllowFileExt(fileReader io.Reader, fileName string, allowFileExts []string) (bool, error)

注意fileReader会更改位置,如果其它地方需要使用,需要Seek(0,0) IsAllowFileExt 文件扩展名判断 fileReader:文件读取器 fileName:文件表面上的文件名 allowFileExts:允许的文件扩展名

Types

This section is empty.

Jump to

Keyboard shortcuts

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