Skip to content

Fix percent unescaping#227

Merged
simleo merged 3 commits intoResearchObject:masterfrom
simleo:fix_unescaping
Jun 11, 2025
Merged

Fix percent unescaping#227
simleo merged 3 commits intoResearchObject:masterfrom
simleo:fix_unescaping

Conversation

@simleo
Copy link
Copy Markdown
Collaborator

@simleo simleo commented Jun 11, 2025

Unescape (urllib.parse.unquote) percent-encodings only when needed. See #226 (comment).

Also applies a fix to zip streaming of nested structures.

@simleo simleo merged commit d12b626 into ResearchObject:master Jun 11, 2025
13 checks passed
@simleo simleo deleted the fix_unescaping branch June 11, 2025 12:10
Comment thread rocrate/model/dataset.py
for name in files:
source = root / name
dest = source.relative_to(Path(path).parent)
dest = Path(unquote(self.id)) / source.relative_to(path)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix for zip streaming of nested dir / file structures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant