fission-codes / ipfs-haskell

IPFS wrapper for Haskell
https://hackage.haskell.org/package/ipfs
Apache License 2.0
43 stars 5 forks source link

Escape paths #32

Closed expede closed 3 years ago

expede commented 3 years ago

Paths, especially directories, that contain spaces fail when pushed over stdin since they're treated as multiple arguments. This adds quotes around these strings to treat them verbatim. In future, we may want to add HTTP escaping for Servant instances as well, but we haven't bumped into this yet.