Closes #3368 (cherry picked from commit 75378f7bde90b9d3d9b72404c25c017da2cd147c)pull/3338/head
parent
8228f11345
commit
eab4134434
@ -0,0 +1,38 @@
|
||||
using System.IO;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace NzbDrone.Windows.Disk
|
||||
{
|
||||
public class FolderMount : IMount
|
||||
{
|
||||
private readonly DirectoryInfo _directoryInfo;
|
||||
|
||||
public FolderMount(DirectoryInfo directoryInfo)
|
||||
{
|
||||
_directoryInfo = directoryInfo;
|
||||
}
|
||||
|
||||
public long AvailableFreeSpace => 0;
|
||||
|
||||
public string DriveFormat => "NTFS";
|
||||
|
||||
public DriveType DriveType => DriveType.Removable;
|
||||
|
||||
public bool IsReady => true;
|
||||
|
||||
public MountOptions MountOptions { get; private set; }
|
||||
|
||||
public string Name => _directoryInfo.Name;
|
||||
|
||||
public string RootDirectory => _directoryInfo.FullName;
|
||||
|
||||
public long TotalFreeSpace => 0;
|
||||
|
||||
public long TotalSize => 0;
|
||||
|
||||
public string VolumeLabel => _directoryInfo.Name;
|
||||
|
||||
public string VolumeName => Name;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue