Skip to content

Commit

Permalink
Rename Path -> RelativePath
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Aug 29, 2023
1 parent ccffa56 commit c0f4fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NexusMods.Paths/FileTree/FileTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public IEnumerable<FileTreeNode<TPath, TValue>> FindSubPath(RelativePath subpath
{
var parts = subpath.Parts.ToArray();

var children = GetAllNodes().Where(n => n.Path.StartsWith(parts[0]));
var children = GetAllNodes().Where(n => n.RelativePath.StartsWith(parts[0]));

foreach (var (_, childNode) in children)
{
Expand All @@ -250,7 +250,7 @@ public IEnumerable<FileTreeNode<TPath, TValue>> FindSubPath(RelativePath subpath
/// Gets all nodes in the tree.
/// </summary>
/// <returns></returns>
public IEnumerable<(RelativePath Path, FileTreeNode<TPath, TValue> Node)> GetAllNodes()
public IEnumerable<(RelativePath RelativePath, FileTreeNode<TPath, TValue> Node)> GetAllNodes()
{
foreach (var (path, node) in Children)
{
Expand Down

0 comments on commit c0f4fd1

Please sign in to comment.