|
|
|
@ -9,6 +9,7 @@ namespace Radarr.Api.V2.RootFolders
|
|
|
|
|
public class RootFolderResource : RestResource
|
|
|
|
|
{
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
public bool Accessible { get; set; }
|
|
|
|
|
public long? FreeSpace { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<UnmappedFolder> UnmappedFolders { get; set; }
|
|
|
|
@ -25,6 +26,7 @@ namespace Radarr.Api.V2.RootFolders
|
|
|
|
|
Id = model.Id,
|
|
|
|
|
|
|
|
|
|
Path = model.Path.GetCleanPath(),
|
|
|
|
|
Accessible = model.Accessible,
|
|
|
|
|
FreeSpace = model.FreeSpace,
|
|
|
|
|
UnmappedFolders = model.UnmappedFolders
|
|
|
|
|
};
|
|
|
|
@ -39,6 +41,7 @@ namespace Radarr.Api.V2.RootFolders
|
|
|
|
|
Id = resource.Id,
|
|
|
|
|
|
|
|
|
|
Path = resource.Path
|
|
|
|
|
//Accessible
|
|
|
|
|
//FreeSpace
|
|
|
|
|
//UnmappedFolders
|
|
|
|
|
};
|
|
|
|
|