file

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotExist

func CheckNotExist(src string) bool

func CopySingleFile

func CopySingleFile(src, dst, style string) error

*

  • @description:
  • @param {*} src
  • @param {*} dst
  • @param {string} style
  • @return {*}
  • @method:
  • @router:

func CreateFile

func CreateFile(path string) error

func Exists

func Exists(path string) bool

func GetExt

func GetExt(fileName string) string

GetExt get the file ext

func GetImageExt

func GetImageExt(p string) (string, error)

* * @description:get a image's ext * @param {string} path "file path" * @return {string} ext "file ext" * @return {error} err "error info"

func GetImageExtByName

func GetImageExtByName(p string) (string, error)

func ImageExtArray

func ImageExtArray() []string

func IsNotExistCreateFile

func IsNotExistCreateFile(src string) error

IsNotExistMkDir create a directory if it does not exist

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

IsNotExistMkDir create a directory if it does not exist

func MkDir

func MkDir(src string) error

MkDir create a directory

func ReadFullFile

func ReadFullFile(path string) []byte

func WriteToPath

func WriteToPath(data []byte, path, name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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