package
3.0.0-alpha9+incompatible
Repository: https://github.com/opensvc/om3.git
Documentation: pkg.go.dev
# Functions
Copy copies the file content from src file path to dst file path.
Copy2 is Identical to Copy() except that Copy2() also attempts to preserve file metadata.
CopyMeta clones the uid, gid, mtime and mode from src to dst.
No description provided by the author
Exists returns true if the file path exists.
ExistsAndDir returns true if the file path exists and is a directory.
ExistsAndRegular returns true if the file path exists and is a regular file.
ExistsAndSymlink returns true if the file path exists and is a symbolic link.
ExistsNotDir returns true if the file path exists and is not a directory.
HaveSameMD5 accepts a variadic list of options.
No description provided by the author
No description provided by the author
No description provided by the author
IsMode returns true if the file current mode is the same as the target mode.
No description provided by the author
IsPerm returns true if the file current permissions are the same as the target.
IsProtected returns true if the file is too critical to alter or remove.
MD5 returns the []byte format md5 of the content of the file at path p.
No description provided by the author
Mode returns the FileMode of the file.
ModTime returns the file modification time or a zero time.
Ownership returns the uid and gid owning the file.
Touch updates the atime and mtime of an existing file, or creates the file if it does not exist yet.