radicle-heartwood-lfs/radicle-node
Fintan Halpenny 8e26e4c046
radicle: canonicalize home path
If a path was passed to `Home` in non-canonical form it would not use
the right path for any initialisation or use.

The aim is to use the `canonicalize` function for paths. However, this
may return an error if none of the paths exist. To ensure that the
path exists the `new` constructor for `Home` creates the directory and
canonicalizes the path.

Since `new` now initialises the home directory, it would be useful if
it also initialised all the necessary subdirectories -- which removes
the need for the `init` method.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-16 16:35:59 +01:00
..
src radicle: canonicalize home path 2023-02-16 16:35:59 +01:00
Cargo.toml node: Move to NoiseXK 2023-02-15 22:05:04 +01:00
Dockerfile Build container images for deployment 2022-12-14 17:15:40 +01:00