Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // [os.UserHomeDir] Home string // [os.UserConfigDir] Config string // [os.UserCacheDir] Cache string )
Functions ¶
func Resolve ¶
Expects path to be an absolute path that can be resolved, otherwise it's made absolute by filepath.Abs, or in the event of failure, Home is prepended and then checked. If all operations fail, fs.ErrNotExist is returned.
Types ¶
type FileInfo ¶
type FileInfo struct { Path string `json:"path"` IsRegular bool `json:"is_regular"` IsDir bool `json:"is_dir"` Name string `json:"filename"` Size int64 `json:"size"` Modified time.Time `json:"modified"` }
Stores information on a file.
func (*FileInfo) Equals ¶
Determines if this *FileInfo is the same as [other] by comparing [FileInfo.Name], [FileInfo.Size] & [FileInfo.Modified].
func (FileInfo) ModifiedString ¶
Return terminal friendly modified string.
Click to show internal directories.
Click to hide internal directories.