fileOperate

package
v0.0.0-...-1b1ae58 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDirAllFile

func FindDirAllFile(dirPth, suffix string) (files []string, err error)

获取指定目录及所有子目录下的所有文件,可以匹配后缀过滤。

func FindDirAllFileNoSuffix

func FindDirAllFileNoSuffix(dirPth string) (files []string, err error)

FindDirAllFileNoSuffix 获取指定目录及所有子目录下的所有文件,不匹配后缀过滤。

func ListDir

func ListDir(dirPth string, suffix string) (files []string, err error)

获取指定目录下的所有文件,不进入下一级目录搜索,可以匹配后缀过滤。

func ReadFile2Str

func ReadFile2Str(FileName string, DetailedOutput bool) (string, error)

func WriteFile

func WriteFile(FileName, contentString string, IsCover, DetailedOutput bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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