fileUtil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile added in v0.1.4

func DownloadFile(url, filePath string) bool

DownloadFile 下载文件 @param url 文件地址 @param filePath 存储路径 @return 下载结果 true成功 false 失败

func DownloadFileRequest added in v0.1.4

func DownloadFileRequest(url, filePath string, headers []httpUtil.Header) bool

DownloadFileRequest 下载文件 @param url 文件地址 @param filePath 存储路径 @param headers headers @return 下载结果 true成功 false 失败

func DownloadRenameFile added in v0.1.4

func DownloadRenameFile(url, filePath, fileName string) bool

DownloadRenameFile 下载文件并重命名 @param url 文件地址 @param filePath 存储路径 @param fileName 文件名 @return 下载结果 true成功 false 失败

func DownloadRenameFileRequest added in v0.1.4

func DownloadRenameFileRequest(url, filePath, fileName string, headers []httpUtil.Header) bool

DownloadRenameFileRequest 下载文件并重命名 @param url 文件地址 @param filePath 存储路径 @param fileName 文件名 @param headers headers @return 下载结果 true成功 false 失败

func FileExist added in v0.1.3

func FileExist(path string) bool

FileExist 验证文件是否存在

func SaveMkdirAllFile

func SaveMkdirAllFile(file *multipart.FileHeader, dst string) error

SaveMkdirAllFile 保存文件,如果文件路径不存在,就创建

Types

This section is empty.

Jump to

Keyboard shortcuts

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