-
Notifications
You must be signed in to change notification settings - Fork 137
/
file.go
45 lines (40 loc) · 1.54 KB
/
file.go
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
40
41
42
43
44
45
package consts
const (
// DirType is the type attribute for directories
DirType = "directory"
// FileType is the type attribute for files
FileType = "file"
)
const (
// RootDirID is the root directory identifier
RootDirID = "io.cozy.files.root-dir"
// TrashDirID is the trash directory identifier
TrashDirID = "io.cozy.files.trash-dir"
// SharedWithMeDirID is the identifier of the directory where the sharings
// will put their folders for the shared files
SharedWithMeDirID = "io.cozy.files.shared-with-me-dir"
// NoLongerSharedDirID is the identifier of the directory where the files &
// folders removed from a sharing but still used via a reference are put
NoLongerSharedDirID = "io.cozy.files.no-longer-shared-dir"
// DrivesDirID is the identifier of the directory where the
// (shared|external) drives are saved.
SharedDrivesDirID = "io.cozy.files.shared-drives-dir"
)
const (
// ShortcutMimeType is the mime-type for the .url files.
ShortcutMimeType = "application/internet-shortcut"
// NoteMimeType is the mime-type for the .cozy-note files.
NoteMimeType = "text/vnd.cozy.note+markdown"
)
const (
// CarbonCopyKey is the metadata key for a carbon copy (certified)
CarbonCopyKey = "carbonCopy"
// ElectronicSafeKey is the metadata key for an electronic safe (certified)
ElectronicSafeKey = "electronicSafe"
)
const (
// NoteImageOriginalFormat is the format for the original image in a note.
NoteImageOriginalFormat = "original"
// NoteImageThumbFormat is the format for a resized image in a note.
NoteImageThumbFormat = "thumb"
)