using MediaBrowser.Model.System;
namespace Jellyfin.Api.Models.SystemInfoDtos;
///
/// Contains information about a specific folder.
///
public record FolderStorageDto
{
///
/// Gets the path of the folder in question.
///
public required string Path { get; init; }
///
/// Gets the free space of the underlying storage device of the .
///
public long FreeSpace { get; init; }
///
/// Gets the used space of the underlying storage device of the .
///
public long UsedSpace { get; init; }
///
/// Gets the kind of storage device of the .
///
public string? StorageType { get; init; }
///
/// Gets the Device Identifier.
///
public string? DeviceId { get; init; }
internal static FolderStorageDto FromFolderStorageInfo(FolderStorageInfo model)
{
return new()
{
Path = model.Path,
FreeSpace = model.FreeSpace,
UsedSpace = model.UsedSpace,
StorageType = model.StorageType,
DeviceId = model.DeviceId
};
}
}