Co-authored-by: Claudio Schaad <c.schaad@pog.ch> Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
20 lines
617 B
C#
20 lines
617 B
C#
namespace Schaad.Accounting
|
|
{
|
|
/// <summary>
|
|
/// Folder layout below DataPath:
|
|
/// <code>
|
|
/// {DataPath}/{mandator}/{year}/*.json data files
|
|
/// {DataPath}/backup/{mandator}/{year}/ backup zips
|
|
/// </code>
|
|
/// </summary>
|
|
public static class DataFolders
|
|
{
|
|
public const string Backup = "backup";
|
|
|
|
/// <summary>
|
|
/// True for the top-level folders that are not mandators.
|
|
/// </summary>
|
|
public static bool IsReserved(string folderName)
|
|
=> folderName.Equals(Backup, System.StringComparison.OrdinalIgnoreCase);
|
|
}
|
|
}
|