Documentation
¶
Index ¶
- type File
- func (file *File) Ext() string
- func (file *File) IsDir() bool
- func (file *File) ListFiles() ([]*File, error)
- func (file *File) ListFilesWithExtention(targetExt string) ([]*File, error)
- func (file *File) ListFilesWithRegexp(re *regexp.Regexp) ([]*File, error)
- func (file *File) Name() string
- func (file *File) Path() string
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 represents a file or director.
func NewFileWithPath ¶
NewFileWithPath return a file with the specified path.
func (*File) ListFilesWithExtention ¶
ListFilesWithExtention returns files which has the specified extensions in the directory.
func (*File) ListFilesWithRegexp ¶
ListFilesWithExtention returns files which has the specified extensions in the directory.
Click to show internal directories.
Click to hide internal directories.