mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
moved data from Roaming to ProgramData.
Cleaned up DiskProvider
This commit is contained in:
parent
7ff1335a2e
commit
d60b863e14
33 changed files with 202 additions and 242 deletions
|
@ -4,23 +4,23 @@ using NzbDrone.Common.EnvironmentInfo;
|
|||
|
||||
namespace NzbDrone.Integration.Test
|
||||
{
|
||||
public class IntegrationTestDirectoryInfo : IAppDirectoryInfo
|
||||
public class IntegrationTestFolderInfo : IAppFolderInfo
|
||||
{
|
||||
public IntegrationTestDirectoryInfo()
|
||||
public IntegrationTestFolderInfo()
|
||||
{
|
||||
SystemTemp = Path.GetTempPath();
|
||||
WorkingDirectory = Path.Combine(Directory.GetCurrentDirectory(), "integ_test", DateTime.Now.Ticks.ToString());
|
||||
TempFolder = Path.GetTempPath();
|
||||
AppDataFolder = Path.Combine(Directory.GetCurrentDirectory(), "integ_test", DateTime.Now.Ticks.ToString());
|
||||
|
||||
if (!Directory.Exists(WorkingDirectory))
|
||||
if (!Directory.Exists(AppDataFolder))
|
||||
{
|
||||
Directory.CreateDirectory(WorkingDirectory);
|
||||
Directory.CreateDirectory(AppDataFolder);
|
||||
}
|
||||
|
||||
StartUpPath = Directory.GetCurrentDirectory();
|
||||
StartUpFolder = Directory.GetCurrentDirectory();
|
||||
}
|
||||
|
||||
public string WorkingDirectory { get; private set; }
|
||||
public string SystemTemp { get; private set; }
|
||||
public string StartUpPath { get; private set; }
|
||||
public string AppDataFolder { get; private set; }
|
||||
public string TempFolder { get; private set; }
|
||||
public string StartUpFolder { get; private set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue