Skip to content

Commit fc8f38b

Browse files
authored
Remove trailing slash from search path for remote folders. (#1164)
* Remove trailing slash from search path for remote folders. * Update changelog.
1 parent 7e85e0c commit fc8f38b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

webknossos/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
2828

2929
### Fixed
3030
- Fixed issue with webknossos URL and context URL being considered different when opening a remote dataset due to trailing slashes. [#1137](https://github.com/scalableminds/webknossos-libs/pull/1137)
31+
- Fix an issue where the remote folder was not found when the folder path query includes a trailing slash. [#1164](https://github.com/scalableminds/webknossos-libs/pull/1164)
3132

3233

3334
## [0.14.26](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.26) - 2024-07-22

webknossos/webknossos/dataset/remote_folder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_by_id(cls, folder_id: str) -> "RemoteFolder":
3737
def get_by_path(cls, path: str) -> "RemoteFolder":
3838
from ..client.context import _get_api_client
3939

40+
path = path.rstrip("/")
4041
client = _get_api_client(enforce_auth=True)
4142
folder_tree_response: List[ApiFolderWithParent] = client.folder_tree()
4243

0 commit comments

Comments
 (0)