Documentation
¶
Index ¶
- func Escape(a string) string
- func IsExecutable(file os.FileInfo) bool
- func IsExecutableMode(mode os.FileMode) bool
- func IsSymLink(file os.FileInfo) bool
- func IsSymLinkMode(mode os.FileMode) bool
- func MakeLink(abs string, name string) string
- func MountsOn(info *item.FileInfo) string
- func RecursivelySizeOf(info os.FileInfo, depth int) int64
- func RemoveSep(s string) string
- type Once
- type SafeSet
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Escape ¶
Escape * Tab is escaped as `\t`. * Carriage return is escaped as `\r`. * Line feed is escaped as `\n`. * Single quote is escaped as `\'`. * Double quote is escaped as `\"`. * Backslash is escaped as `\\`.
func IsExecutable ¶
func IsExecutableMode ¶
func IsSymLinkMode ¶
func RecursivelySizeOf ¶
RecursivelySizeOf returns the size of the file or directory depth < 0 means no limit
Types ¶
Click to show internal directories.
Click to hide internal directories.