Documentation ¶
Overview ¶
Package files finds and displays files on disk
Index ¶
- func ConfirmClean(confirm bool, fs Files) error
- func ConfirmRestore(confirm bool, fs Files) error
- func ConfirmTrash(confirm bool, fs Files, trashDir string) error
- func Remove(files Files) (removed int, err error)
- func Restore(files Files) (restored int, err error)
- func SortByExtension(a, b File) int
- func SortByExtensionReverse(a, b File) int
- func SortByModified(a, b File) int
- func SortByModifiedReverse(a, b File) int
- func SortByName(a, b File) int
- func SortByNameReverse(a, b File) int
- func SortByPath(a, b File) int
- func SortByPathReverse(a, b File) int
- func SortBySize(a, b File) int
- func SortBySizeReverse(a, b File) int
- func SortDirectoriesFirst(a, b File) int
- func SortDirectoriesLast(a, b File) int
- func TrashFile(trashDir, name string) error
- func TrashFiles(trashDir string, files ...string) (trashed int)
- type DiskFile
- type File
- type Files
- type TrashInfo
- func (t TrashInfo) Date() time.Time
- func (t TrashInfo) Filesize() int64
- func (t TrashInfo) IsDir() bool
- func (t TrashInfo) Mode() fs.FileMode
- func (t TrashInfo) Name() string
- func (t TrashInfo) Path() string
- func (t TrashInfo) String() string
- func (t TrashInfo) TrashInfo() string
- func (t TrashInfo) TrashPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmClean ¶
func ConfirmRestore ¶
func SortByExtension ¶
func SortByExtensionReverse ¶
func SortByModified ¶
func SortByModifiedReverse ¶
func SortByName ¶
func SortByNameReverse ¶
func SortByPath ¶
func SortByPathReverse ¶
func SortBySize ¶
func SortBySizeReverse ¶
func SortDirectoriesFirst ¶
func SortDirectoriesLast ¶
func TrashFiles ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.