mirror of https://github.com/lidarr/Lidarr
32 lines
769 B
C#
32 lines
769 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using NzbDrone.Common.EnvironmentInfo;
|
|||
|
|
|||
|
namespace NzbDrone.Common.Disk
|
|||
|
{
|
|||
|
public static class SystemFolders
|
|||
|
{
|
|||
|
public static List<string> GetSystemFolders()
|
|||
|
{
|
|||
|
if (OsInfo.IsWindows)
|
|||
|
{
|
|||
|
return new List<string> { Environment.GetFolderPath(Environment.SpecialFolder.Windows) };
|
|||
|
}
|
|||
|
|
|||
|
if (OsInfo.IsOsx)
|
|||
|
{
|
|||
|
return new List<string> { "/System" };
|
|||
|
}
|
|||
|
|
|||
|
return new List<string>
|
|||
|
{
|
|||
|
"/bin",
|
|||
|
"/boot",
|
|||
|
"/lib",
|
|||
|
"/sbin",
|
|||
|
"/proc"
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|