mirror of https://github.com/Radarr/Radarr
33 lines
801 B
C#
33 lines
801 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",
|
|
"/usr/bin"
|
|
};
|
|
}
|
|
}
|
|
}
|