btcpayserver/BTCPayServer.Abstractions/Configuration/DataDirectories.cs

21 lines
528 B
C#
Raw Normal View History

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