mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 17:27:18 +00:00
d60b863e14
Cleaned up DiskProvider
26 lines
No EOL
784 B
C#
26 lines
No EOL
784 B
C#
using System;
|
|
using System.IO;
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
namespace NzbDrone.Integration.Test
|
|
{
|
|
public class IntegrationTestFolderInfo : IAppFolderInfo
|
|
{
|
|
public IntegrationTestFolderInfo()
|
|
{
|
|
TempFolder = Path.GetTempPath();
|
|
AppDataFolder = Path.Combine(Directory.GetCurrentDirectory(), "integ_test", DateTime.Now.Ticks.ToString());
|
|
|
|
if (!Directory.Exists(AppDataFolder))
|
|
{
|
|
Directory.CreateDirectory(AppDataFolder);
|
|
}
|
|
|
|
StartUpFolder = Directory.GetCurrentDirectory();
|
|
}
|
|
|
|
public string AppDataFolder { get; private set; }
|
|
public string TempFolder { get; private set; }
|
|
public string StartUpFolder { get; private set; }
|
|
}
|
|
} |