# Functions
AbsPath returns a clean, normalized and absolute path string for the given pathname.
AbsPathL returns a clean, normalized, symbolic links resolved, absolute path string for the given pathname.
Base returns filename without pathname.
Basename returns filename without pathname and suffix.
CopyFile will make a content clone of src.
CopyFileByLinkFirst copies a file from src to dst.
DeleteFile deletes a file if exists.
EnsureDir checks and creates the directory.
EnsureDirEnh checks and creates the directory, via sudo if necessary.
Exists returns the existence of an directory or file.
No description provided by the author
FileAccessedTime return the creation time of a file.
FileCreatedTime return the creation time of a file.
FileExists returns the existence of an directory or file.
FileModeIs tests the mode of 'filepath' with 'tester'.
FileModifiedTime return the creation time of a file.
FollowSymLink resolves the symbolic links for a given pathname.
ForDir walks on `root` directory and its children.
ForDirMax walks on `root` directory and its children with nested levels up to `maxLength`.
ForFile walks on `root` directory and its children.
ForFileMax walks on `root` directory and its children with nested levels up to `maxLength`.
GetCurrentDir returns the current workingFlag directory it should be equal with os.Getenv("PWD").
GetExecutableDir returns the executable file directory.
GetExecutablePath returns the executable file path.
IsDirectory tests whether `path` is a directory or not.
IsModeCharDevice give the result of whether a file is a character device.
IsModeDevice give the result of whether a file is a device.
IsModeDirectory give the result of whether a file is a directory.
IsModeExecAll give the result of whether a file can be invoked by all users.
IsModeExecAny give the result of whether a file can be invoked by anyone.
IsModeExecGroup give the result of whether a file can be invoked by its unix-group.
IsModeExecOther give the result of whether a file can be invoked by its unix-all.
IsModeExecOwner give the result of whether a file can be invoked by its unix-owner.
IsModeIrregular give the result of whether a file is a non-regular file; nothing else is known about this file.
IsModeNamedPipe give the result of whether a file is a named pipe.
IsModeReadAll give the result of whether a file can be read by all users.
IsModeReadAny give the result of whether a file can be read by anyone.
IsModeReadGroup give the result of whether a file can be read by its unix-group.
IsModeReadOther give the result of whether a file can be read by its unix-all.
IsModeReadOwner give the result of whether a file can be read by its unix-owner.
IsModeRegular give the result of whether a file is a regular file.
IsModeSetgid give the result of whether a file has the setgid bit.
IsModeSetuid give the result of whether a file has the setuid bit.
IsModeSocket give the result of whether a file is a socket file.
IsModeSticky give the result of whether a file is a sticky file.
IsModeSymbolicLink give the result of whether a file is a symbolic link.
IsModeWriteAll give the result of whether a file can be written by all users.
IsModeWriteAny give the result of whether a file can be written by anyone.
IsModeWriteGroup give the result of whether a file can be written by its unix-group.
IsModeWriteOther give the result of whether a file can be written by its unix-all.
IsModeWriteOwner give the result of whether a file can be written by its unix-owner.
IsRegularFile tests whether `path` is a normal regular file or not.
IsSameVolume detects if two files are in same volume (Unix like) or partition (Windows like).
IsWildMatch provides a wild-matching ('*' and '?') test.
No description provided by the author
No description provided by the author
NopCloser returns a ReadCloser with a no-op Close method wrapping the provided Reader r.
NormalizeDir make dir name normalized.
NormalizePath cleans up the given pathname.
PushDir provides a shortcut to enter a folder and restore at the end of your current function scope.
PushDirEx provides a shortcut to enter a folder and restore at the end of your current function scope.
ReadAll reads from r until an error or EOF and returns the data it read.
ReadDir reads the directory named by dirname and returns a list of fs.FileInfo for the directory's contents, sorted by filename.
ReadFile reads the file named by filename and returns the contents.
RelName returns relative pathname from root.
RelNameForce returns the relative pathname even if 'file' and 'root' is not on a same volume.
RemoveDirRecursive removes a directory and any children it contains.
TempDir creates a new temporary directory in the directory dir.
TempFile creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting *os.File.
ToBool translate a value to boolean.
ToBoolEx translate a value to boolean.
WriteFile writes data to a file named by filename.
# Variables
nolint:revive.