Documentation
¶
Index ¶
- func Available(path string) bool
- func CleanRotatedByCount(fileName string, max int) error
- func CleanRotatedByDays(fileName string, days int) error
- func CopyDir(source, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func Delete(path string) bool
- func DeleteAll(path string) bool
- func ExpandPath(filepath string) (expandedPath string)
- func FileAvailable(path string) bool
- func FixPath(path string) string
- func HomeFolder() string
- func ListSeparator() string
- func MkDir(path string)
- func Name(path string) string
- func PathOnly(path string) string
- func PathSeparator() string
- func RotateFiles(fileName string) error
- func SizeAs(size int64, szType filesize.SizeTypes, si bool) float64
- type ByNumericalFilename
- type ByNumericalFilenameRev
- type Exif
- type File
- type Image
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanRotatedByCount ¶ added in v0.0.6
func CleanRotatedByDays ¶ added in v0.0.6
func ExpandPath ¶
func FileAvailable ¶
func HomeFolder ¶
func HomeFolder() string
func ListSeparator ¶
func ListSeparator() string
func MkDir ¶
func MkDir(path string)
MkDir create a directory if it doesn't exist passing in a FileMode such as os.ModePerm
func PathSeparator ¶
func PathSeparator() string
func RotateFiles ¶ added in v0.0.6
Types ¶
type ByNumericalFilename ¶ added in v0.0.6
func (ByNumericalFilename) Len ¶ added in v0.0.6
func (nf ByNumericalFilename) Len() int
func (ByNumericalFilename) Less ¶ added in v0.0.6
func (nf ByNumericalFilename) Less(i, j int) bool
func (ByNumericalFilename) Swap ¶ added in v0.0.6
func (nf ByNumericalFilename) Swap(i, j int)
type ByNumericalFilenameRev ¶ added in v0.0.6
func (ByNumericalFilenameRev) Len ¶ added in v0.0.6
func (nf ByNumericalFilenameRev) Len() int
func (ByNumericalFilenameRev) Less ¶ added in v0.0.6
func (nf ByNumericalFilenameRev) Less(i, j int) bool
func (ByNumericalFilenameRev) Swap ¶ added in v0.0.6
func (nf ByNumericalFilenameRev) Swap(i, j int)
type File ¶
type File interface { Available() bool Delete() bool DeleteAll() bool Dir() bool Type() string Path() string PathOnly() string Name() string Size() int64 Hash(hasher hash.Hasher, rebuild bool) []byte HRByteCount(si bool) string SetMeta(m Meta) Decode(enctype encodeenum.Encoding) []byte Encode(enctype encodeenum.Encoding) string }
Click to show internal directories.
Click to hide internal directories.