Using the ory permission model, having a User, Folder and File namespace, where a User can have view and edit permission to files and folders and the edit/view permission for files traverses the parent folder to check the according permission.
How can I get all files a user has access to?
How can I get all files, that match a permit from the permission model?