blob: 5a8c206c33120af5b1fcbfac6c4d0972e765b95c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
namespace IOL.GreatOffice.Api.Models.Models;
public sealed record AppPath
{
public string HostPath { get; init; }
public string WebPath { get; init; }
public string GetHostPathForFilename(string filename, string fallback = "")
{
if (filename.IsNullOrWhiteSpace())
{
return fallback;
}
return Path.Combine(HostPath, filename);
}
public string GetWebPathForFilename(string filename, string fallback = "")
{
if (filename.IsNullOrWhiteSpace())
{
return fallback;
}
return Path.Combine(WebPath, filename);
}
}
|