This module abstracts the location of directories for storing persistent data.
The directory for persistent data will be placed under deploy_data_root_dir/1 (multifile) or inside the temporary build directory (see config_common:data_root_dir/1.
See ensure_datadir/2 for usage. This module is handy to select the directory for persdb databases, e.g.:
persistent_dir(db, Dir) :- ensure_datadir('yourapp', Dir).
Usage:ensure_datadir(RelPath,Path)
Obtain the absolute path Path for storing persistent data under relative RelPath directory. The directory is created if needed.