InitPaths sets the default paths in the configuration based on CLI flags,
configuration file and default values. It also tries to create the data
path with mode 0750 and returns an error on failure.
Resolve resolves a path to a location in one of the default
folders. For example, Resolve(Home, "test") returns an absolute
path for "test" in the home path.
In case path is already an absolute path, the path itself is returned.
InitPaths sets the default paths in the configuration based on CLI flags,
configuration file and default values. It also tries to create the data
path with mode 0750 and returns an error on failure.
Resolve resolves a path to a location in one of the default
folders. For example, Resolve(Home, "test") returns an absolute
path for "test" in the home path.