You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web resources are currently downloaded to rpath which is constructed by combining a unique id (if requested) and the file name extracted from the url. However, some url dont include a filename e.g.
In this case the url contains json, so I think the download fails as the filename generated for rpath isnt valid. However, any url that doesn't have a filename at the end but returns a file could end up with an unwieldy filename in the cache folder.
I tried to overcome this using bfcupdate to change rpath before downloading, but it fails because bfcupdate changes the rtype to "local".
One option would be to include an input in bfcadd that allows the user to override the default filename for rpath e.g. rpath_filename = "new_filename.xyz" and construct rpath from that instead of trying to extract it from the url.
Or you could try to extract the intended filename from the httr:GET response, if there is one.
Is there a work around for this that doesnt need an update to BiocFileCache?
The text was updated successfully, but these errors were encountered:
I don't think there is a work around for this right now. We didn't think of this situation when we original designed its behavior. We would have to update BiocFileCache code.
Web resources are currently downloaded to
rpath
which is constructed by combining a unique id (if requested) and the file name extracted from the url. However, some url dont include a filename e.g.In this case the url contains json, so I think the download fails as the filename generated for rpath isnt valid. However, any url that doesn't have a filename at the end but returns a file could end up with an unwieldy filename in the cache folder.
I tried to overcome this using
bfcupdate
to change rpath before downloading, but it fails becausebfcupdate
changes the rtype to "local".One option would be to include an input in
bfcadd
that allows the user to override the default filename for rpath e.g.rpath_filename = "new_filename.xyz"
and constructrpath
from that instead of trying to extract it from the url.Or you could try to extract the intended filename from the
httr:GET
response, if there is one.Is there a work around for this that doesnt need an update to BiocFileCache?
The text was updated successfully, but these errors were encountered: