mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
PathProvider. visit us for all of your pathing needs.
This commit is contained in:
@@ -32,11 +32,6 @@ namespace NzbDrone.Common
|
||||
}
|
||||
}
|
||||
|
||||
public virtual String LogPath
|
||||
{
|
||||
get { return Environment.CurrentDirectory; }
|
||||
}
|
||||
|
||||
public virtual bool IsUserInteractive
|
||||
{
|
||||
get { return Environment.UserInteractive; }
|
||||
@@ -68,26 +63,7 @@ namespace NzbDrone.Common
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string WebRoot
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(ApplicationPath, "NzbDrone.Web");
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string AppDataPath
|
||||
{
|
||||
get
|
||||
{
|
||||
var path = Path.Combine(WebRoot, "App_Data");
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public virtual string StartUpPath
|
||||
{
|
||||
get
|
||||
@@ -111,15 +87,6 @@ namespace NzbDrone.Common
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual String TempPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.GetTempPath();
|
||||
}
|
||||
}
|
||||
|
||||
private static bool ContainsIIS(DirectoryInfo dir)
|
||||
{
|
||||
return dir.GetDirectories(IIS_FOLDER_NAME).Length != 0;
|
||||
|
Reference in New Issue
Block a user