mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
21 lines
573 B
C#
21 lines
573 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 LangsDir { get; set; }
|
|
|
|
public string ToDatadirFullPath(string path)
|
|
{
|
|
if (Path.IsPathRooted(path))
|
|
return path;
|
|
return Path.Combine(DataDir, path);
|
|
}
|
|
}
|
|
}
|