Anoma.System.Directories (Anoma v0.29.0)
I provide out utilities for ensuring user Data, Config, etc. directories are properly setup for the host operating system.
Please use me when trying to write to user directories.
Summary
Functions
I provide a proper translation from a user directory to the corresponding system configuration directory.
I provide a proper translation from a user directory to the corresponding system data directory.
Functions
Link to this function
configuration(file_path, env \\ Application.get_env(:anoma, :env))
I provide a proper translation from a user directory to the corresponding system configuration directory.
Parameters
file_path
- the path given by the userenv
(optional) - the system environment. It defaults to the application environment. The:test
environment uses the local directory instead of the system directory
Returns
The correct environment which to save configuration details
Link to this function
data(file_path, env \\ Application.get_env(:anoma, :env))
I provide a proper translation from a user directory to the corresponding system data directory.
Parameters
file_path
- the path given by the userenv
(optional) - the system environment. It defaults to the application environment. The:test
environment uses the local directory instead of the system directory
Returns
The correct environment which to save data details