Nexus-Mods / NexusMods.Paths

Custom path library used by NexusMods.App.
https://nexus-mods.github.io/NexusMods.Paths/
GNU General Public License v3.0
6 stars 0 forks source link

Find subpath method #14

Closed halgari closed 1 year ago

halgari commented 1 year ago

A new property 'Depth' and a new method 'FindSubPath' were added to 'FileTreeNode'. 'Depth' is a ushort that represents a node's depth in the tree and can be used for various calculations. 'FindSubPath' is a function that returns all nodes that match a given subpath. This enhancement will allow more complex manipulations and considerations of the file tree hierarchy. Meanwhile, a test for 'FindSubPath' has been implemented in 'RelativeFileTreeTests'.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 72.72% and project coverage change: -0.03% :warning:

Comparison is base (723c454) 77.33% compared to head (ccffa56) 77.30%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #14 +/- ## ========================================== - Coverage 77.33% 77.30% -0.03% ========================================== Files 35 35 Lines 1747 1780 +33 Branches 298 304 +6 ========================================== + Hits 1351 1376 +25 - Misses 340 347 +7 - Partials 56 57 +1 ``` | [Flag](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | Coverage Δ | | |---|---|---| | [Linux](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | `76.74% <72.72%> (-0.02%)` | :arrow_down: | | [Windows](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | `76.74% <72.72%> (-0.02%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | Coverage Δ | | |---|---|---| | [src/NexusMods.Paths/FileTree/FileTreeNode.cs](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods#diff-c3JjL05leHVzTW9kcy5QYXRocy9GaWxlVHJlZS9GaWxlVHJlZU5vZGUuY3M=) | `83.07% <72.72%> (-3.53%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/14/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.