2
0

FolderStorageInfo.cs 888 B

1234567891011121314151617181920212223242526272829303132
  1. namespace MediaBrowser.Model.System;
  2. /// <summary>
  3. /// Contains information about a specific folder.
  4. /// </summary>
  5. public record FolderStorageInfo
  6. {
  7. /// <summary>
  8. /// Gets the path of the folder in question.
  9. /// </summary>
  10. public required string Path { get; init; }
  11. /// <summary>
  12. /// Gets the free space of the underlying storage device of the <see cref="Path"/>.
  13. /// </summary>
  14. public long FreeSpace { get; init; }
  15. /// <summary>
  16. /// Gets the used space of the underlying storage device of the <see cref="Path"/>.
  17. /// </summary>
  18. public long UsedSpace { get; init; }
  19. /// <summary>
  20. /// Gets the kind of storage device of the <see cref="Path"/>.
  21. /// </summary>
  22. public string? StorageType { get; init; }
  23. /// <summary>
  24. /// Gets the Device Identifier.
  25. /// </summary>
  26. public string? DeviceId { get; init; }
  27. }