package
5.0.1-beta3+incompatible
Repository: https://github.com/labring/sealos.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CleanDir removes the directory.
CleanDirs removes multiple directories.
CleanFile removes the file.
CleanFiles removes multiple files.
No description provided by the author
Copy copies file from source to target path.
CopyDirV3 copy files recursively from source to target directory.
CountDirFiles reutrns # of files under a directory.
DiffWithCallback diff with callback function.
Filename returns the file name after the last "/".
No description provided by the author
GetAllSubDirs returns all subdirectories of given root path.
GetFileListBySuffix returns an ordered list of file paths.
GetFiles returns all the files under the path.
GetFileSize returns the size of a file.
GetFilesSize returns the size of multiple files.
IsDir returns if the given path is a directory.
IsExist returns if a file exists.
IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.
No description provided by the author
LgetAllSubDirs returns all subdirectories of given root path, including following symbolic links, if any.
Lgetxattr retrieves the value of the extended attribute identified by attr and associated with the given path in the file system.
Lsetxattr sets the value of the extended attribute identified by attr and associated with the given path in the file system.
LstatDir gathers information of given directory by depth-first.
MkDirs creates directories.
MkTmpdir creates a temporary directory.
MkTmpFile creates a temporary file.
ReadAll reads all the content of the file.
ReadLines reads the contents from the file line by line.
RecursionCopy equals to `cp -r`.
StatDir gathers information of given directory by depth-first.
WriteFile outputs all content to the file.
WriteLines outputs lines to the file.