IWebDavFileInfo.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using System;
  2. using System.IO;
  3. namespace WebDAVSharp.Server.Stores
  4. {
  5. /// <summary>
  6. /// </summary>
  7. public interface IWebDavFileInfo
  8. {
  9. /// <summary>
  10. /// </summary>
  11. bool Exists { get; set; }
  12. /// <summary>
  13. /// File should be archived.
  14. /// </summary>
  15. bool Archive { get; set; }
  16. /// <summary>
  17. /// Compress file contents.
  18. /// </summary>
  19. bool Compressed { get; set; }
  20. /// <summary>
  21. /// Device file.
  22. /// </summary>
  23. bool Device { get; set; }
  24. /// <summary>
  25. /// </summary>
  26. bool Directory { get; set; }
  27. /// <summary>
  28. /// Encrypted file.
  29. /// </summary>
  30. bool Encrypted { get; set; }
  31. /// <summary>
  32. /// Hidden file.
  33. /// </summary>
  34. bool Hidden { get; set; }
  35. /// <summary>
  36. /// </summary>
  37. bool IntegrityStream { get; set; }
  38. /// <summary>
  39. /// Normal file.
  40. /// </summary>
  41. bool Normal { get; set; }
  42. /// <summary>
  43. /// </summary>
  44. bool NoScrubData { get; set; }
  45. /// <summary>
  46. /// File should not be indexed by the content indexing service.
  47. /// </summary>
  48. bool NotContentIndexed { get; set; }
  49. /// <summary>
  50. /// </summary>
  51. bool Offline { get; set; }
  52. /// <summary>
  53. /// Read-only file.
  54. /// </summary>
  55. bool ReadOnly { get; set; }
  56. /// <summary>
  57. /// Reparse point.
  58. /// </summary>
  59. bool ReparsePoint { get; set; }
  60. /// <summary>
  61. /// Sparse file.
  62. /// </summary>
  63. bool SparseFile { get; set; }
  64. /// <summary>
  65. /// System file.
  66. /// </summary>
  67. bool System { get; set; }
  68. /// <summary>
  69. /// File is temporary (should be kept in cache and not
  70. /// written to disk if possible).
  71. /// </summary>
  72. bool Temporary { get; set; }
  73. /// <summary>
  74. /// </summary>
  75. DateTime CreationTime { get; set; }
  76. /// <summary>
  77. /// </summary>
  78. DateTime LastAccessTime { get; set; }
  79. /// <summary>
  80. /// </summary>
  81. DateTime? LastWriteTime { get; set; }
  82. /// <summary>
  83. /// </summary>
  84. void Apply();
  85. /// <summary>
  86. /// </summary>
  87. /// <returns></returns>
  88. FileAttributes GetAttributes();
  89. /// <summary>
  90. /// </summary>
  91. /// <param name="fa"></param>
  92. void ApplyAttributes(FileAttributes fa);
  93. }
  94. }