FilesystemConstants.swift 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. struct Constants {
  2. struct ConfigurationValue {
  3. static let endOfFile = ""
  4. }
  5. struct DirectoryTypeValue {
  6. static let cache = "CACHE"
  7. static let data = "DATA"
  8. static let documents = "DOCUMENTS"
  9. static let external = "EXTERNAL"
  10. static let externalCache = "EXTERNAL_CACHE"
  11. static let externalStorage = "EXTERNAL_STORAGE"
  12. static let library = "LIBRARY"
  13. static let libraryNoCloud = "LIBRARY_NO_CLOUD"
  14. static let temporary = "TEMPORARY"
  15. }
  16. struct FileItemTypeValue {
  17. static let directory = "directory"
  18. static let file = "file"
  19. static let fallback = ""
  20. }
  21. struct MethodParameter {
  22. static let data = "data"
  23. static let directory = "directory"
  24. static let encoding = "encoding"
  25. static let chunkSize = "chunkSize"
  26. static let from = "from"
  27. static let path = "path"
  28. static let recursive = "recursive"
  29. static let to = "to"
  30. static let toDirectory = "toDirectory"
  31. }
  32. struct ResultDataKey {
  33. static let data = "data"
  34. static let files = "files"
  35. static let uri = "uri"
  36. static let publicStorage = "publicStorage"
  37. }
  38. struct ResultDataValue {
  39. static let granted = "granted"
  40. }
  41. struct ItemAttributeJSONKey {
  42. static let ctime = "ctime"
  43. static let mtime = "mtime"
  44. static let name = "name"
  45. static let size = "size"
  46. static let type = "type"
  47. static let uri = "uri"
  48. }
  49. struct StringEncodingValue {
  50. static let ascii = "ascii"
  51. static let utf16 = "utf16"
  52. static let utf8 = "utf8"
  53. }
  54. }