ioex

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (written int64, err error)

复制文件

params:
	src: 源文件
	dst: 目标文件
returns:
	written: 写入文件大小
	err: 错误信息

func CopyFolderFiles added in v0.4.0

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

复制目录 (单层COPY)

params:
	src: 源路径
	dst: 目标路径
returns:
	count: 复制文件数量
	err: 错误信息

func Exist added in v0.4.0

func Exist(src string) (b bool)

文件或路径是否存在

params:
	path: 路径或者文件地址
returns:
	b: true -> 存在

func IsDir added in v0.4.0

func IsDir(path string) (b bool)

是否为路径

params:
	path: 路径
returns:
	b: true -> 代表是路径

func ListExtensions added in v0.2.0

func ListExtensions(folder_path string) (extensions []string, err error)

列目录下的扩展名

params:
	folder_path: 文件夹
returns:
	extensions: 扩展名数组
	err: error message

func ListFiles

func ListFiles(folder_path string, suffix string) (files []string, err error)

列目录文件, 仅仅查询文件

params:
	folder_path: 目录路径
	suffix: 过滤
returns:
	files: 文件列表
	err: 错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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