Implements directory browser dialog, part 1: file system treeview

This commit is contained in:
BinaryAlley committed 2024-09-15 13:07:53 +03:00
1 parent 4a53348013
commit 4e4ecbbfca
318 files changed
+6012 -1184

No files matched your search

@@ -0,0 +1,40 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.FileSystem;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Models.FileManagement;
/// <summary>
/// Model for files and directories displayed in custom directory/file browser dialogs.
/// </summary>
[DebuggerDisplay("{Path}")]
public class FileSystemItemModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the full path to the file system item.
/// </summary>
public string? Path { get; set; }
/// <summary>
/// Gets the type of the file system element.
/// </summary>
public FileSystemItemType ItemType { get; set; }
/// <summary>
/// Gets or sets the file extension of the item, if applicable (e.g., ".txt", ".jpg").
/// </summary>
public string? Extension { get; set; }
/// <summary>
/// Gets or sets the source path or identifier for the icon representing the file system item.
/// </summary>
public string? IconSource { get; set; }
/// <summary>
/// Gets or sets a friendly name for the file system item, which may be a user-friendly display name.
/// </summary>
public string? FriendlyName { get; set; }
#endregion
}