Closed danielhollas closed 2 months ago
@sphuber would mind taking a quick look at this one?
Essentially, we're trying to download files from the file repository via the FolderData interface, without knowing upfront whether it is a binary or text file. I am wondering if there is a better approach than I took here.
@sphuber would mind taking a quick look at this one?
Essentially, we're trying to download files from the file repository via the FolderData interface, without knowing upfront whether it is a binary or text file. I am wondering if there is a better approach than I took here.
Seems reasonable to me. AiiDA doesn't store any information about the encoding in the repository. It just works with byte streams. It is up to the client to know and how to deal with it.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.17%. Comparing base (
cc4291b
) to head (468383a
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Retrieved folder of CalcJobs may contain binary files. FolderDataViewer would except if the user tried to display / download such file.
Fixes #350