wenjianmulu

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ML_ChuLi

func ML_ChuLi(str string) string

目录_处理, 如果字符串末尾不带'\'则给它加上

func ML_ChuLi2

func ML_ChuLi2(str string) string

目录_去除末尾斜杠, 返回处理后文本

func ML_ChuangJian

func ML_ChuangJian(str string) error

目录_创建, 不存在则自动创建

func WJ_ChuangJian

func WJ_ChuangJian(name string, str string) error

文件_创建, 并写入字符串数据 参数1: 文件路径 参数2: 要写入的字符串数据

func WJ_ChuangJianKuaiJieFangShi

func WJ_ChuangJianKuaiJieFangShi(filePath, lnkPath, memo string) error

文件_创建快捷方式 参数1: 源文件路径 参数2: 快捷方式路径 参数3: 备注

func WJ_ChuangJianKuaiJieFangShi2

func WJ_ChuangJianKuaiJieFangShi2(filepath, filepath2 string) bool

文件_创建快捷方式2 参数1: 文件路径 参数2: 快捷方式路径

func WJ_JieYa

func WJ_JieYa(filePath string, dest string) error

文件_解压, 支持: zip 参数1: 压缩文件路径 参数2: 解压之后文件保存目录, 目录必须带斜杠

func WJ_QuHouZhuiMing

func WJ_QuHouZhuiMing(str string) string

文件_取后缀名

func WJ_QuKuoZhanMing

func WJ_QuKuoZhanMing(str string) string

文件_取扩展名

func WJ_QuMuLu

func WJ_QuMuLu(filePath string) string

文件_取目录, 返回的目录末尾带斜杠

func WJ_QuWenJianMing

func WJ_QuWenJianMing(str string, DaiHouZhui bool) string

文件_取文件名 参数1: 文件路径 参数2: 是否带后缀

func WJ_ShanChu

func WJ_ShanChu(path string) error

文件_删除 参数1: 文件/目录都可以

func WJ_ShiFouCunZai

func WJ_ShiFouCunZai(path string) bool

文件_是否存在, 文件/目录都可以

func Wj_YaSuo

func Wj_YaSuo(fileArr []string, filePath string) (err error)

文件_压缩, 支持: zip 参数1: 需要压缩的文件路径数组 参数2: 压缩之后的压缩包文件路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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