Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FilesystemPathParents #1292

Merged
merged 2 commits into from
Mar 17, 2025
Merged

Add FilesystemPathParents #1292

merged 2 commits into from
Mar 17, 2025

Conversation

DanRStevens
Copy link
Collaborator

Add a FilesystemPathParents collection class, which allows for easy iteration over parent folders, with an optional maximum number of levels.

This is maybe a little overkill to put into NAS2D. Not sure if we really want to provide this as a library feature, or treat it as an internal implementation detail that could be simplified or removed in the future. Potentially just the code from the parentCount function could have been used to implement the path searching feature for #1285. Though having the full abstraction means something custom could be easily written if the issue feature isn't a perfect match. It might also be nice to have this as part of history if nothing more than to document how to do this sort of thing.

Related:

@DanRStevens DanRStevens merged commit 8b8693a into main Mar 17, 2025
8 checks passed
@DanRStevens DanRStevens deleted the filesystemPathParents branch March 17, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant