You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|