aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/System/FolderStorageInfo.cs
blob: 7b10e4ea58e8b86ab9f333ba7e39a5c5506e5d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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; }
}