github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/pkg/consts/file.go (about) 1 package consts 2 3 const ( 4 // DirType is the type attribute for directories 5 DirType = "directory" 6 // FileType is the type attribute for files 7 FileType = "file" 8 ) 9 10 const ( 11 // RootDirID is the root directory identifier 12 RootDirID = "io.cozy.files.root-dir" 13 // TrashDirID is the trash directory identifier 14 TrashDirID = "io.cozy.files.trash-dir" 15 // SharedWithMeDirID is the identifier of the directory where the sharings 16 // will put their folders for the shared files 17 SharedWithMeDirID = "io.cozy.files.shared-with-me-dir" 18 // NoLongerSharedDirID is the identifier of the directory where the files & 19 // folders removed from a sharing but still used via a reference are put 20 NoLongerSharedDirID = "io.cozy.files.no-longer-shared-dir" 21 // DrivesDirID is the identifier of the directory where the 22 // (shared|external) drives are saved. 23 SharedDrivesDirID = "io.cozy.files.shared-drives-dir" 24 ) 25 26 const ( 27 // ShortcutMimeType is the mime-type for the .url files. 28 ShortcutMimeType = "application/internet-shortcut" 29 // NoteMimeType is the mime-type for the .cozy-note files. 30 NoteMimeType = "text/vnd.cozy.note+markdown" 31 ) 32 33 const ( 34 // CarbonCopyKey is the metadata key for a carbon copy (certified) 35 CarbonCopyKey = "carbonCopy" 36 // ElectronicSafeKey is the metadata key for an electronic safe (certified) 37 ElectronicSafeKey = "electronicSafe" 38 ) 39 40 const ( 41 // NoteImageOriginalFormat is the format for the original image in a note. 42 NoteImageOriginalFormat = "original" 43 // NoteImageThumbFormat is the format for a resized image in a note. 44 NoteImageThumbFormat = "thumb" 45 )