Documentation ¶
Overview ¶
© Ben Garrett https://github.com/bengarrett/dupers
Index ¶
Constants ¶
View Source
const ( Header = "sha256_sum,path#" // Header that is inserted into exported CSV files. WinOS = "windows" // WinOS is the Windows operating system.s BackSlash = "\u005C" // BackSlash Unicode representation. FwdSlash = "\u002F" // FwdSlash is a forward slash Unicode representation. UncPath = BackSlash + BackSlash // UncPath is the Universal Naming Convention path. )
Variables ¶
View Source
var ( ErrChecksumLen = errors.New("hexadecimal value is invalid") ErrFileNoDesc = errors.New("no file descriptor") ErrImportFile = errors.New("not a valid dupers export file") ErrImportPath = errors.New("import item has an invalid file path") ErrImportSyntax = errors.New("import item has incorrect syntax") )
Functions ¶
func Checker ¶
Checker reads the first line in the export csv file and returns nil if it uses the expected syntax.
func PathWindows ¶
PathWindows returns a Windows or UNC usable path from the source path.
Types ¶
Click to show internal directories.
Click to hide internal directories.