Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables each app in egroupware to use a custom VFS file structure to save files for each entry.
In JS: vfs path is no longer hardcoded, but instead a function of base app (getVfsPath).
In PHP: Hooks were added so each app can modify the way the structure is created, and the way it's parsed to find the correct id.
If there are no hooks, and the app class does not implement getVfsPath, then the default path is used.
In our case, we split directories by digit to avoid having to load thousands of folders when browsing the vfs tree. For example, /app/appname/123 became /app/appname/d1/d2/d3/id123
We thought this would be something useful for the project, since we're adding abstraction and not using a hardcoded path.