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

ResourceFilter, Directory Function Renames, Multifilter Functionality #752

Merged
merged 8 commits into from
Dec 17, 2024

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Dec 13, 2024

This PR creates a new struct, ResourceFilter, which holds include and exclude lists as well as owner and parent options to be passed to LoadResource as part of the ResourceIdentifier. It also renames and fleshes out all Directory commands to be named with Resources instead, and threads all Resources functionality to also encapsulate ListFiles calls, which addresses #736. ListFiles calls are unified now, eventually passing a ResourceFilter to the base function.

…tiple include and exclude filters in one pass. Also adds associated Load, LoadAsync, and Unload directory functions.
Change `LoadDirectory`, `UnloadDirectory`, and `DirtyDirectory` to `LoadResources`, etc.
Move all Directory processing to the thread pool, encapsulating `ListFiles` as well.
Unify `ListFiles` flows to eventually pass `ResourceFilter` to the base function.
@Malkierian Malkierian changed the title Multi filter list files ResourceFilter, Directory Function Renames, Multifilter Functionality Dec 17, 2024
Change the blank `ListFiles()` function to pass empty lists instead of "*" to allow it to trip the early list insertion and return short circuit based on them being empty.
…he other one.

Add handling to not add `""` to the list before passing to the base function.
Copy link
Collaborator

@briaguya-ai briaguya-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Kenix3 Kenix3 merged commit b7e715e into Kenix3:main Dec 17, 2024
5 checks passed
@Malkierian Malkierian mentioned this pull request Dec 18, 2024
@Malkierian Malkierian deleted the multi-filter-list-files branch December 18, 2024 16:42
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.

3 participants