package
1.1.0
Repository: https://github.com/nubeio/lib-files.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
CheckDelete stop the user from delete the root ot home dir.
ChmodR is like `chmod -R`.
ChownR is like `chown -R`.
Copy copies a file or directory from src to dst.
CopyDir copies a directory from source to dest and all of its subdirectories.
CopyFile copies a file from source to dest and returns an error if any.
No description provided by the author
DirExists returns whether a directory exists.
DirExistsErr returns whether a directory exists, returns an error if not exist.
No description provided by the author
Expand expands the path to include the home directory if the path is prefixed with `~`.
FileExists returns whether a file exists.
No description provided by the author
GetExt returns extension name Will return `` when giving a string `.txt` or `.foo.zip.` etc.
GetFileName returns file name.
GetFileSize returns file size ).
GetFolderSize returns folder size.
HomeDir returns the home directory for the executing user.
No description provided by the author
MakeFilePath make file and path.
MkdirAll implements os.Mkdir in this directory context.
No description provided by the author
Mv is `mv` / os.Rename.
No description provided by the author
OpenFile implements os.OpenFile in this directory context.
ReadAll returns file content,will return `` if err.
ReadAllOk returns file content with err.
ReadFile returns file content with err.
No description provided by the author
No description provided by the author
RemoveAll implements os.RemoveAll in this directory context.
RemoveAllFiles implements os.RemoveAll removes all files from in a dir.
Rename implements os.Rename in this directory context.
Reset clears the cache, forcing the next call to Dir to re-detect the home directory.
Rm is `rm` / os.Remove.
RmRF is `rm -rf` / os.RemoveAll.
SlashClean is equivalent to but slightly more efficient than path.Clean("/" + name).
Stat implements os.Stat in this directory context.
No description provided by the author
Which is `which` / exec.LookPath.
WriteFile implements ioutil.WriteFile as body as a string.
WriteFileByte implements ioutil.WriteFile.
ZipFiles compresses one or many files into a single zip archive file.

# Variables

DisableCache will disable caching of the home directory.

# Structs

No description provided by the author
No description provided by the author