Categorygithub.com/goanywhere/fs
modulepackage
0.0.0-20190926065740-ac39b8ec70c1
Repository: https://github.com/goanywhere/fs.git
Documentation: pkg.go.dev

# README

FS

Build Status GoDoc

FS is a file system toolkit for the Go programming language.

Getting Started

Install the package, along with executable binary helper (go 1.4 and greater is required):

$ go get -v github.com/goanywhere/fs

# Functions

Abs finds the absolute path for the given path.
Copy recursively copies files/(sub)directoires into the given path.
Exists check if the given path exists.
Find matches files with regular expression pattern under the given root.
Getcd returns absolute path of the caller.
Geted returns an absolute path to the executable.
Getwd returns a absolute path of the current directory.
Glob recursively finds the names of all files matching pattern under the given path.
Grep searches text files via regular expression under the given path, paths of the files contain matched line(s) will be returned.
IsDir checks if the given path is a directory.
IsFile checks if the given path is a file.
No description provided by the author
UserDir finds base path of current system user.