Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2025 Changes in this version + const ChunkSize + const FastHashThreshold + func CloseBadgerDB(db *badger.DB) + func ComputeFileHash(filePath string, useFastHash bool) (string, error) + func ExtractHeicExif(r io.ReaderAt) ([]byte, error) + func GetBadgerDBValue(db *badger.DB, hashKey string) (string, error) + func IterateWithPrefix(db *badger.DB, prefix string) ([]string, error) + func Md5Sum(filePath string) (string, error) + func OpenBadgerDB(path string) (*badger.DB, error) + func PutBadgerDB(db *badger.DB, hashKey string, fileNameValue string) error + func ReadJpegDate(ctx context.Context, db *badger.DB, src_dirname string, options ScanOptions) ([]FileObject, []ErroredFileObject) + func ReadVideoCreationTimeMetadata(ctx context.Context, db *badger.DB, src_dirname string, options ScanOptions) ([]FileObject, []ErroredFileObject) + func ScanAndGenerateMd5sumFiles(ctx context.Context, db *badger.DB, dirname string, prefix string, ...) + func ScanFiles(ctx context.Context, src_dirname string, dst_dirname string, ...) + func SortFilesByDate(files []FileObject) + type ErroredFileObject struct + DateTime time.Time + ErrorMessage string + Name string + Path string + type FileObject struct + DateTime time.Time + Md5Sum string + Name string + Path string + func RemoveSourceFile(src_dirname string) []FileObject + type FileProcessor struct + DateFmt string + ForceCopy bool + NumWorkers int + Overwrite string + ProgressChan chan string + Recursive bool + UseFastHash bool + func (fp *FileProcessor) CopyImageFiles(ctx context.Context, srcdir string, destdir string) ([]FileObject, []ErroredFileObject, []FileObject) + func (fp *FileProcessor) CopyVideoFiles(ctx context.Context, srcdir string, destdir string) ([]FileObject, []ErroredFileObject, []FileObject) + type MatchObject struct + DstFileName string + SrcFileName string + func ValidateMd5sumFiles(ctx context.Context, src_prefix string, dst_prefix string) []MatchObject + type ScanOptions struct + NumWorkers int + ProgressChan chan string + Recursive bool + UseFastHash bool