- Notifications
You must be signed in to change notification settings - Fork0
Functions that deals with files and directories. Can cache Exists and Which.
License
NotificationsYou must be signed in to change notification settings
xyproto/files
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Functions for querying files and paths.
func Exists(path string) boolfunc IsFile(path string) boolfunc IsSymlink(path string) boolfunc IsFileOrSymlink(path string) boolfunc IsDir(path string) boolfunc Which(executable string) stringfunc WhichCached(executable string) stringfunc PathHas(executable string) boolfunc PathHasCached(executable string) boolfunc BinDirectory(filename string) boolfunc DataReadyOnStdin() boolfunc IsBinary(filename string) boolfunc FilterOutBinaryFiles(filenames []string) []stringfunc TimestampedFilename(filename string) stringfunc ShortPath(path string) stringfunc FileHas(path, what string) boolfunc ReadString(filename string) stringfunc CanRead(filename string) boolfunc Relative(path string) stringfunc Touch(filename string) errorfunc ExistsCached(path string) boolfunc ClearCache()func RemoveFile(path string) errorfunc DirectoryWithFiles(path string) (bool, error)func IsExecutable(path string) boolfunc IsExecutableCached(path string) bool
- Version: 1.9.0
- License: BSD-3
- Author: Alexander F. Rødseth <xyproto@archlinux.org>
About
Functions that deals with files and directories. Can cache Exists and Which.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published