|
|
|
@ -22,6 +22,7 @@ namespace NzbDrone.Common
|
|
|
|
|
private const string UPDATE_BACKUP_FOLDER_NAME = "nzbdrone_backup\\";
|
|
|
|
|
private const string UPDATE_CLIENT_EXE = "nzbdrone.update.exe";
|
|
|
|
|
private const string UPDATE_CLIENT_FOLDER_NAME = "NzbDrone.Update\\";
|
|
|
|
|
public const string UPDATE_LOG_FOLDER_NAME = "UpdateLogs\\";
|
|
|
|
|
|
|
|
|
|
public static string NormalizePath(this string path)
|
|
|
|
|
{
|
|
|
|
@ -94,6 +95,11 @@ namespace NzbDrone.Common
|
|
|
|
|
return Path.Combine(enviromentProvider.GetWebRoot(), "Cache");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetUpdateLogFolder(this EnviromentProvider enviromentProvider)
|
|
|
|
|
{
|
|
|
|
|
return Path.Combine(enviromentProvider.ApplicationPath, UPDATE_LOG_FOLDER_NAME);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetUpdateSandboxFolder(this EnviromentProvider enviromentProvider)
|
|
|
|
|
{
|
|
|
|
|
return Path.Combine(enviromentProvider.SystemTemp, UPDATE_SANDBOX_FOLDER_NAME);
|
|
|
|
@ -118,5 +124,10 @@ namespace NzbDrone.Common
|
|
|
|
|
{
|
|
|
|
|
return Path.Combine(enviromentProvider.GetUpdateClientFolder(), UPDATE_CLIENT_EXE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetSandboxLogFolder(this EnviromentProvider enviromentProvider)
|
|
|
|
|
{
|
|
|
|
|
return Path.Combine(enviromentProvider.GetUpdateSandboxFolder(), UPDATE_LOG_FOLDER_NAME);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|