Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user