mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
21 lines
528 B
C#
21 lines
528 B
C#
using System.IO;
|
|
|
|
namespace BTCPayServer.Configuration
|
|
{
|
|
public class DataDirectories
|
|
{
|
|
public string DataDir { get; set; }
|
|
public string PluginDir { get; set; }
|
|
public string TempStorageDir { get; set; }
|
|
public string StorageDir { get; set; }
|
|
public string TempDir { get; set; }
|
|
|
|
public string ToDatadirFullPath(string path)
|
|
{
|
|
if (Path.IsPathRooted(path))
|
|
return path;
|
|
return Path.Combine(DataDir, path);
|
|
}
|
|
}
|
|
}
|