Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalSha256AndSize ¶
CalSha256AndSize calculates the sha256 hash and size of the file at the given path.
func GenerateFiles ¶
GenerateFiles generates a channel of file paths in the given directory. It will walk through the directory and return the absolute path of each file. Note that if root is a file, it will return the file itself.
If isRecursive is true, it will walk through all subdirectories. Otherwise, it will only walk through the top level directory.
If includeHidden is true, it will include hidden files (files starting with a dot). Otherwise, it will skip hidden files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.