# Functions
No description provided by the author
CopyDir Dir copies a whole directory recursively.
CopyFile File copies a single file from src to dst.
No description provided by the author
No description provided by the author
CopyWithCtx slightly modified function signature: - context has been added in order to propagate cancellation - I do not return the number of bytes written, has it is not useful in my use case.
CreateNestedDirectory create nested directory.
CreateNestedFile create nested file.
CreateTempFile create temp file from io.ReadCloser, and seek to 0.
No description provided by the author
No description provided by the author
Exists determine whether the file exists.
No description provided by the author
FixAndCleanPath The upper layer of the root directory is still the root directory.
No description provided by the author
GetActualMountPath remove balance suffix.
GetFileType get file type.
No description provided by the author
No description provided by the author
No description provided by the author
GetNoneEmpty returns the first non-empty string, return empty if all empty.
No description provided by the author
HashData get hash of one hashType.
HashFile get hash of one hashType from a model.File.
HashReader get hash of one hashType from a reader.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMultiHasher will return a hash writer that will write the requested hash types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PathAddSeparatorSuffix Add path '/' suffix for example /root => /root/.
PathEqual judge path is equal.
RegisterHash adds a new Hash to the list and returns its Type.
No description provided by the author
No description provided by the author
No description provided by the author
SliceAllContains check if slice all contains elements.
SliceContains check if slice contains element.
SliceConvert convert slice to another type slice.
SliceEqual check if two slices are equal.
No description provided by the author
No description provided by the author
No description provided by the author
SymlinkOrCopyFile symlinks a file or copy if symlink failed.
No description provided by the author
WriteJsonToFile write struct to json file.
# Variables
No description provided by the author
No description provided by the author
ErrUnsupported should be returned by filesystem, if it is requested to deliver an unsupported hash type.
No description provided by the author
No description provided by the author
No description provided by the author
MD5 indicates MD5 support.
SHA1 indicates SHA-1 support.
SHA256 indicates SHA-256 support.
No description provided by the author
# Structs
No description provided by the author
A HashInfo contains hash string for one or more hashType.
HashType indicates a standard hashing algorithm.
A MultiHasher will construct various hashes on all incoming writes.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author