Implements directory browser dialog, part 2: path navigator

This commit is contained in:
BinaryAlley committed 2024-09-17 21:27:05 +03:00
1 parent 4e4ecbbfca
commit a4f9199d2c
34 files changed
+1450 -200

No files matched your search

@@ -1,5 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.FileSystem;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.FileManagement;
@@ -8,6 +9,7 @@ namespace Lumina.Contracts.Responses.FileManagement;
/// Represents a response containing the file system platform type.
/// </summary>
/// <param name="PlatformType">The returned file system platform type.</param>
[DebuggerDisplay("{PlatformType}")]
public record FileSystemTypeResponse(
PlatformType PlatformType
);
@@ -1,9 +1,14 @@
namespace Lumina.Contracts.Responses.FileManagement;
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.FileManagement;
/// <summary>
/// Represents a response containing a file system path.
/// </summary>
/// <param name="Path">The returned path.</param>
[DebuggerDisplay("{Path}")]
public record PathSegmentResponse(
string Path
);
@@ -1,9 +1,14 @@
namespace Lumina.Contracts.Responses.FileManagement;
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.FileManagement;
/// <summary>
/// Represents a response to the inquiry about the system's path separator.
/// </summary>
/// <param name="Separator">The system's path separator.</param>
[DebuggerDisplay("{Separator}")]
public record PathSeparatorResponse(
string Separator
);
@@ -0,0 +1,14 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.FileManagement;
/// <summary>
/// Represents a response to the inquiry about the validity of a file system path.
/// </summary>
/// <param name="IsValid">Whether a file system path is valid or not.</param>
[DebuggerDisplay("{IsValid}")]
public record PathValidResponse(
bool IsValid
);
@@ -1,9 +1,14 @@
namespace Lumina.Contracts.Responses.FileManagement;
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.FileManagement;
/// <summary>
/// Represents a response containing the result of splitting a file system path.
/// </summary>
/// <param name="PathSegments">The returned path segments.</param>
[DebuggerDisplay("{PathSegments}")]
public record SplitPathResponse(
string[] PathSegments
);