Documentation ¶
Index ¶
- func Abs(path string) string
- func Copy(src, dst string) (err error)
- func Exists(path string) bool
- func Find(root string, pattern *regexp.Regexp) (paths []string)
- func Getcd(skip int) string
- func Geted() string
- func Getwd() string
- func Glob(path string, pattern string) (matches []string, err error)
- func Grep(root string, pattern *regexp.Regexp) (paths []string)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func NewWatcher(dir string) *watcher
- func UserDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Abs finds the absolute path for the given path. Supported Formats:
- empty path => current working directory.
- '.', '..' & '~'
*NOTE* Abs does NOT check the existence of the path.
func Copy ¶
Copy recursively copies files/(sub)directoires into the given path. *NOTE* It uses platform's native copy commands (windows: copy, *nix: rsync).
func Grep ¶
Grep searches text files via regular expression under the given path, paths of the files contain matched line(s) will be returned.
func NewWatcher ¶
func NewWatcher(dir string) *watcher
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.