-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle request abspath in the api layer.
A path locating a file in a request has the form `group/path/file`, and the file on disk is just `root/path/file`. Previously, this discrepency was handled in file_browser_api layer, at tree construction time. Building on the previous commit, we move this to be a responsibility of the ReleaseRequest container. Its abspath() now expected the full path including group, validates the group part, and returns the abspath on disk. This is much cleaner, and removes some logic and attributes from PathItem.
- Loading branch information
1 parent
156fea7
commit 524978e
Showing
4 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters