All data folders are migrated, so drop DataMigrator, its tests and the startup call, plus the old-layout year-folder filter in GetMandators. Bank-statement XML import is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
903 B
C#
24 lines
903 B
C#
namespace Schaad.Accounting
|
|
{
|
|
/// <summary>
|
|
/// Folder layout below DataPath:
|
|
/// <code>
|
|
/// {DataPath}/{mandator}/{year}/*.json data files
|
|
/// {DataPath}/uploads/{mandator}/{year}/ imported bank statements (+ creditCard/)
|
|
/// {DataPath}/backup/{mandator}/{year}/ backup zips
|
|
/// </code>
|
|
/// </summary>
|
|
public static class DataFolders
|
|
{
|
|
public const string Uploads = "uploads";
|
|
public const string Backup = "backup";
|
|
public const string CreditCard = "creditCard";
|
|
|
|
/// <summary>
|
|
/// True for the top-level folders that are not mandators.
|
|
/// </summary>
|
|
public static bool IsReserved(string folderName)
|
|
=> folderName.Equals(Uploads, System.StringComparison.OrdinalIgnoreCase)
|
|
|| folderName.Equals(Backup, System.StringComparison.OrdinalIgnoreCase);
|
|
}
|
|
}
|