2023-02-10 11:43:46 +09:00
|
|
|
using System.IO;
|
|
|
|
|
2021-01-06 15:51:13 +01:00
|
|
|
namespace BTCPayServer.Configuration
|
|
|
|
{
|
|
|
|
public class DataDirectories
|
|
|
|
{
|
2021-12-31 16:59:02 +09:00
|
|
|
public string DataDir { get; set; }
|
|
|
|
public string PluginDir { get; set; }
|
2021-01-06 15:51:13 +01:00
|
|
|
public string TempStorageDir { get; set; }
|
|
|
|
public string StorageDir { get; set; }
|
2022-03-31 11:54:25 +02:00
|
|
|
public string TempDir { get; set; }
|
2023-02-10 11:43:46 +09:00
|
|
|
|
|
|
|
public string ToDatadirFullPath(string path)
|
|
|
|
{
|
|
|
|
if (Path.IsPathRooted(path))
|
|
|
|
return path;
|
|
|
|
return Path.Combine(DataDir, path);
|
|
|
|
}
|
2021-01-06 15:51:13 +01:00
|
|
|
}
|
|
|
|
}
|