Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func CleanPath(path string) string func IsDir(path string) bool func IsFile(path string) bool func Tempdir() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CleanPath ¶ func CleanPath(path string) string CleanPath resolves common aliases in a path and cleans it as much as possible func IsDir ¶ func IsDir(path string) bool IsDir checks if a certain path exists and is a directory https://stackoverflow.com/questions/10510691/how-to-check-whether-a-file-or-directory-denoted-by-a-path-exists-in-golang func IsFile ¶ func IsFile(path string) bool IsFile checks if a certain path is actually a file func Tempdir ¶ func Tempdir() string Tempdir returns a temporary directory suiteable for sensitive data. It tries /dev/shm but if this isn't working it will return an empty string. Using this with ioutil.Tempdir will ensure that we're getting the "best" tempdir. Types ¶ This section is empty. Source Files ¶ View all Source files fsutil.go fsutil_others.go Click to show internal directories. Click to hide internal directories.