Documentation
¶
Index ¶
- type File
- func (f *File) CreateMultiDir(filePath string) error
- func (f *File) Exists(path string) bool
- func (f *File) GetDirectorySize(path string) (int64, error)
- func (f *File) IsExist(path string) bool
- func (f *File) MakeDirs(filePath string) error
- func (f *File) ReadCsv(fileName string) (data [][]string, err error)
- func (f *File) RemoveDirFilesSuffix(dirPath string) error
- func (f *File) Rename()
- func (f *File) ReplaceDirFilesName(dirPath string, oldStr, newStr string) error
- func (f *File) Size(path string) int64
- func (f *File) WriteCsv(filePath string, data [][]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File 文件对象
func (*File) CreateMultiDir ¶ added in v0.1.3
CreateMultiDir 调用os.MkdirAll递归创建文件夹
func (*File) GetDirectorySize ¶ added in v0.1.3
GetDirectorySize 文件夹占用磁盘大小
func (*File) RemoveDirFilesSuffix ¶ added in v0.1.3
RemoveDirFilesSuffix 去掉指定目录下所有文件的后缀
func (*File) ReplaceDirFilesName ¶ added in v0.1.3
ReplaceDirFilesName 替换指定目录下的文件名
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
remove_files_suffix
command
|
|
|
z01_csv
command
|
|
|
z02_cirectory
command
|
|
|
z03_download
command
|
|
|
z04_file
command
|
Click to show internal directories.
Click to hide internal directories.