mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Lumina.Contracts.Responses.FileSystemManagement.Common;
|
|
|
|
/// <summary>
|
|
/// Generic file system node.
|
|
/// </summary>
|
|
[DebuggerDisplay("Path: {Path}")]
|
|
public class FileSystemTreeNodeResponse
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the full path of the file or directory.
|
|
/// </summary>
|
|
public string Path { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the file or directory.
|
|
/// </summary>
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the item, indicating whether it is a file, directory, or drive.
|
|
/// </summary>
|
|
public FileSystemItemType ItemType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the file or directory is hidden.
|
|
/// </summary>
|
|
public bool IsHidden { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the node is expanded.
|
|
/// </summary>
|
|
public bool IsExpanded { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the child nodes have been loaded.
|
|
/// </summary>
|
|
public bool ChildrenLoaded { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the list of child nodes.
|
|
/// </summary>
|
|
public List<FileSystemTreeNodeResponse> Children { get; set; } = [];
|
|
}
|