aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/System/FolderStorageInfo.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-04-21 05:06:50 +0300
committerGitHub <noreply@github.com>2025-04-20 20:06:50 -0600
commita0931baa8eb879898f4bc4049176ed3bdb4d80d1 (patch)
tree69bca19c69930fb83a166ae9944273c4dd66fdb9 /MediaBrowser.Model/System/FolderStorageInfo.cs
parent5e4bd744c07d44d75c8e9eb7b6dc03b7ff4f147c (diff)
Add Api and startup check for sufficient storage capacity (#13888)
Diffstat (limited to 'MediaBrowser.Model/System/FolderStorageInfo.cs')
-rw-r--r--MediaBrowser.Model/System/FolderStorageInfo.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.Model/System/FolderStorageInfo.cs b/MediaBrowser.Model/System/FolderStorageInfo.cs
new file mode 100644
index 000000000..7b10e4ea5
--- /dev/null
+++ b/MediaBrowser.Model/System/FolderStorageInfo.cs
@@ -0,0 +1,32 @@
+namespace MediaBrowser.Model.System;
+
+/// <summary>
+/// Contains information about a specific folder.
+/// </summary>
+public record FolderStorageInfo
+{
+ /// <summary>
+ /// Gets the path of the folder in question.
+ /// </summary>
+ public required string Path { get; init; }
+
+ /// <summary>
+ /// Gets the free space of the underlying storage device of the <see cref="Path"/>.
+ /// </summary>
+ public long FreeSpace { get; init; }
+
+ /// <summary>
+ /// Gets the used space of the underlying storage device of the <see cref="Path"/>.
+ /// </summary>
+ public long UsedSpace { get; init; }
+
+ /// <summary>
+ /// Gets the kind of storage device of the <see cref="Path"/>.
+ /// </summary>
+ public string? StorageType { get; init; }
+
+ /// <summary>
+ /// Gets the Device Identifier.
+ /// </summary>
+ public string? DeviceId { get; init; }
+}