Documentation ¶
Index ¶
- func CopyFile(src, des string) error
- func CreateDir(dirpath string) error
- func Delete(path string) error
- func GetPerm(path string) error
- func IsExist(path string) bool
- type Directory
- func (d *Directory) Copy(targetDir string) error
- func (d *Directory) Delete() error
- func (d *Directory) GetALLDir() []*Directory
- func (d *Directory) GetAllFile(isSearchSubDir bool) []*file.File
- func (d *Directory) GetChildrenDirs() []Directory
- func (d *Directory) GetDir(name string) ([]*Directory, error)
- func (d *Directory) GetFile(name string) ([]*file.File, error)
- func (d *Directory) GetFilesAll() []file.File
- func (d *Directory) GetParent() *Directory
- func (d *Directory) IsExist() bool
- func (d *Directory) Move(targetDir string) error
- func (d *Directory) Rename(newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
func (*Directory) GetAllFile ¶
GetAllFile 获取当前目录所有的子文件夹
func (*Directory) GetChildrenDirs ¶
GetChildrenDirs 获取子文件夹
func (*Directory) GetFilesAll ¶
GetFilesAll 获取文件夹中的文件(包含子文件夹)
Click to show internal directories.
Click to hide internal directories.