Documentation ¶
Index ¶
Constants ¶
View Source
const ( DirFirst sortType = "dirFirst" DateModified sortType = "dateModified" Name sortType = "name" Size sortType = "size" Extension sortType = "extension" )
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates a file with the given path, if the override flag is true, the file will be overwritten.
func IsPathExists ¶
func WriteToFile ¶
WriteToFile writes the given lines to the given file.
Types ¶
type Directory ¶
type Directory struct {
*Entry
}
Directory represents a directory.
func (*Directory) IsDirectory ¶
IsDirectory always returns true.
type Entry ¶
type Entry struct { IEntry // contains filtered or unexported fields }
Entry contains information about a file or directory.
func (*Entry) GetChangeTime ¶
GetChangeTime returns the change time of the entry.
func (*Entry) GetPermissions ¶
GetPermissions returns the permissions of the entry.
Click to show internal directories.
Click to hide internal directories.