Files
SharepointToolbox-Web/Core/Models/FolderStructureRow.cs
T
2026-06-02 10:56:03 +02:00

18 lines
600 B
C#

using CsvHelper.Configuration.Attributes;
namespace SharepointToolbox.Web.Core.Models;
public class FolderStructureRow
{
[Name("Level1")] public string Level1 { get; set; } = string.Empty;
[Name("Level2")] public string Level2 { get; set; } = string.Empty;
[Name("Level3")] public string Level3 { get; set; } = string.Empty;
[Name("Level4")] public string Level4 { get; set; } = string.Empty;
public string BuildPath()
{
var parts = new[] { Level1, Level2, Level3, Level4 }.Where(s => !string.IsNullOrWhiteSpace(s));
return string.Join("/", parts);
}
}