java: create userfilepath according to chosen directory
|Reported by:||valbosoft||Owned by:|
In the file browser, I've created a virtual file directory (in this case called "screens") that points to another file system directory. What I'd want is in case of choosing that virual directory, the userfilepath also changes. I've managed this by overriding the GetResponse class, and add the following line in the constructor:
if ("/screens/".equals(currentFolder)) constructedUrl = <my new userfilepath>
This works fine, it would be nice if this could somehow be plugable/ configurable. It would also be nice if this could be configured for several subdirectories.
I tried to do this by overriding ServerRootPathBuilder.getUserFilesPath, but then the returned path is "<userfilepath>/file/screens/<myFile>", while what I need is "<userfilepath>/<myFile>"