Closed maier-m closed 6 years ago
Reverts https://github.com/DataONEorg/rdataone/pull/208 and then creates a new function D1Client function downloadObject
to address https://github.com/DataONEorg/rdataone/issues/217
@maier-m The revert and addition of downloadObject()
looks great. One question about downloadObject()
- it looks like the file extension for formatId application/octet-stream
is .data
. Is there any reason for not using this?
@gothub Yes, great question. As far as I know, application/octet-stream
is used as a default when a formatID
can not be made. I was worried about applying .data to files that should have legitimate other extensions. For example, new MATLAB file formatIDs were recently entered into D1. Therefore, previously entered MATLAB files may have formatID application/octet-stream
and was worried about calling these files .data
when they should be in fact .mat
. I thought maybe no extension was better than a misleading one. Then again, this will only be an issue if the fileName
is not specified. Not 100% sure this is the best approach though and would be fine with removing this behavior.
Reverts DataONEorg/rdataone#208