Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFileBlockSize = 4 * 1024 * 1024
DefaultFileBlockSize is used for the default parameter to split a file to several blocks todo: May Declare in elsewhere
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
FileInfo describe a file by the SHA512 checksum for itself and SHA512-256 of every block of it
type LocalFileInfo ¶
LocalFileInfo extends FileInfo with the filepath and modify time
func StatLocalFile ¶
func StatLocalFile(filepath string, blockSize int64) (lf *LocalFileInfo, err error)
StatLocalFile return the LocalFileInfo for a file in the disk
Click to show internal directories.
Click to hide internal directories.