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

ApiFileResource stores same information multiple times #26

Open
KircMax opened this issue Jan 2, 2023 · 0 comments
Open

ApiFileResource stores same information multiple times #26

KircMax opened this issue Jan 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@KircMax
Copy link
Collaborator

KircMax commented Jan 2, 2023

Since the ApiFileResource stores the Information of the FilePath just like the parent - the ApiFileResource being a directory - the filepath shall be determined using it's parents and only the necessary information shall be stored ==> only the "root" parent shall contain the info to the according directory, the sub-directories paths and then the filepath shall be determined via the parents array

maybe also the parents array shall only be a parent reference since there are not actually multiple but instead the parent has its parent... (cleaner recursion aswell I guess)

@KircMax KircMax added the enhancement New feature or request label Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant