Add folder rename detection (#3817)

This commit is contained in:
WithoutPants
2023-07-11 11:53:49 +10:00
committed by GitHub
parent 5c38836ade
commit 93b41fb650
4 changed files with 287 additions and 13 deletions

View File

@@ -154,10 +154,12 @@ type Getter interface {
FindByFingerprint(ctx context.Context, fp Fingerprint) ([]File, error)
FindByZipFileID(ctx context.Context, zipFileID ID) ([]File, error)
FindAllInPaths(ctx context.Context, p []string, limit, offset int) ([]File, error)
FindByFileInfo(ctx context.Context, info fs.FileInfo, size int64) ([]File, error)
}
type Counter interface {
CountAllInPaths(ctx context.Context, p []string) (int, error)
CountByFolderID(ctx context.Context, folderID FolderID) (int, error)
}
// Creator provides methods to create Files.