Open mscheltienne opened 1 year ago
Thanks for reporting @mscheltienne! We completely forgot to update the registry writing logic after updating the reading code. Sorry about that.
The fix should be relatively simple: Use shlex.quote
on the file name we write out to the file. We'd need to add a test for this case that fails currently to prevent this issue from coming back in the future.
I'm running v1.7.0, and it seems like this is not fully resolved. Filename: "LICENSE (copy)", with a space.
Run:
pooch.make_registry(DATASET, output=REGISTRY, recursive=True)
withDATASET
the path to the folder containingLICENSE (copy)
and more. It results in this registry:And now
fetcher.load_registry(REGISTRY)
withfetcher
being an instance of Pooch yields:Which is wrong.
Originally posted by @mscheltienne in https://github.com/fatiando/pooch/issues/315#issuecomment-1655320564