-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFileStates.js
More file actions
39 lines (36 loc) · 1.06 KB
/
FileStates.js
File metadata and controls
39 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// @flow
/**
* Images that are not saved, can not meet the criteria, and are blocked.
* Excluded from searching for pHash deduplication.
*/
export const STATE_BLOCKED = "STATE_BLOCKED";
/**
* Accepted image. And to be protected.
* In most cases, when duplicate files are detected, files in this state are not deleted.
* pHash deduplication search target.
*/
export const STATE_KEEPING = "STATE_KEEPING";
/**
* Accepted image. pHash deduplication search target.
*/
export const STATE_ACCEPTED = "STATE_ACCEPTED";
/**
* Deduplicated, unimported images.
* Excluded from searching for pHash deduplication.
*/
export const STATE_DEDUPED = "STATE_DEDUPED";
/**
* delete file. it has no db record.
*/
export const STATE_ERASED = "STATE_ERASED";
export type StateErased = "STATE_ERASED";
export type StateBlocked = "STATE_BLOCKED";
export type StateKeeping = "STATE_KEEPING";
export type StateAccepted = "STATE_ACCEPTED";
export type StateDeduped = "STATE_DEDUPED";
export type FileState =
| StateErased
| StateBlocked
| StateKeeping
| StateAccepted
| StateDeduped;