FileSystemMetadata.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. namespace MediaBrowser.Model.IO
  3. {
  4. public class FileSystemMetadata
  5. {
  6. /// <summary>
  7. /// Gets or sets a value indicating whether this <see cref="FileSystemMetadata"/> is exists.
  8. /// </summary>
  9. /// <value><c>true</c> if exists; otherwise, <c>false</c>.</value>
  10. public bool Exists { get; set; }
  11. /// <summary>
  12. /// Gets or sets the full name.
  13. /// </summary>
  14. /// <value>The full name.</value>
  15. public string FullName { get; set; }
  16. /// <summary>
  17. /// Gets or sets the name.
  18. /// </summary>
  19. /// <value>The name.</value>
  20. public string Name { get; set; }
  21. /// <summary>
  22. /// Gets or sets the extension.
  23. /// </summary>
  24. /// <value>The extension.</value>
  25. public string Extension { get; set; }
  26. /// <summary>
  27. /// Gets or sets the length.
  28. /// </summary>
  29. /// <value>The length.</value>
  30. public long Length { get; set; }
  31. /// <summary>
  32. /// Gets or sets the name of the directory.
  33. /// </summary>
  34. /// <value>The name of the directory.</value>
  35. public string DirectoryName { get; set; }
  36. /// <summary>
  37. /// Gets or sets the last write time UTC.
  38. /// </summary>
  39. /// <value>The last write time UTC.</value>
  40. public DateTime LastWriteTimeUtc { get; set; }
  41. /// <summary>
  42. /// Gets or sets the creation time UTC.
  43. /// </summary>
  44. /// <value>The creation time UTC.</value>
  45. public DateTime CreationTimeUtc { get; set; }
  46. /// <summary>
  47. /// Gets a value indicating whether this instance is directory.
  48. /// </summary>
  49. /// <value><c>true</c> if this instance is directory; otherwise, <c>false</c>.</value>
  50. public bool IsDirectory { get; set; }
  51. public bool IsHidden { get; set; }
  52. public bool IsReadOnly { get; set; }
  53. }
  54. }