using CsvHelper.Configuration.Attributes; namespace SharepointToolbox.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; /// /// Builds the folder path from non-empty level values (e.g. "Admin/HR/Contracts"). /// public string BuildPath() { var parts = new[] { Level1, Level2, Level3, Level4 } .Where(s => !string.IsNullOrWhiteSpace(s)); return string.Join("/", parts); } }