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)
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)