lukechampine / user

A CLI renter for Sia
MIT License
12 stars 2 forks source link

Allow ~ in config paths #11

Closed lukechampine closed 5 years ago

lukechampine commented 5 years ago

This config file:

contracts_enabled = "~/us/contracts"

will result in user looking for a directory called ~ in the current directory. You could argue that this is "behaving as intended" (since ~ is specific to Unix, and what if you want a directory named ~?), but in practice it's confusing and unintuitive.

I don't know if there's a standard way to replace ~ with the actual home dir, but it shouldn't be hard to implement ourselves.

lukechampine commented 5 years ago

Fixed in https://github.com/lukechampine/user/commit/497d3a0804ee35d1dfd08bbd1851ebae0de4a288