filex

package
v0.0.0-...-09c63dc Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Author:ydy Date: Desc:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(dirs ...string) (err error)

func CreateFile

func CreateFile(name string) (*os.File, error)

create file

func DeLFile

func DeLFile(filePath string) error

func FileExist

func FileExist(path string) bool

FileExist 判断文件是否存在

func FileMove

func FileMove(src string, dst string) (err error)

func OpenFile

func OpenFile(path string) (*os.File, error)

OpenFile

func OpenFileWithMode

func OpenFileWithMode(path string, flag int, mode os.FileMode) (*os.File, error)

func PathExists

func PathExists(path string) (bool, error)

func ZipFiles

func ZipFiles(filename string, files []string, oldForm, newForm string) error

Types

type Local

type Local struct{}

func (*Local) DeleteFile

func (*Local) DeleteFile(key string, filePath string) error

func (*Local) UploadFile

func (*Local) UploadFile(file *multipart.FileHeader, filePath string) (string, string, error)

Jump to

Keyboard shortcuts

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