Function rdfox_rs::find_license

source ·
pub fn find_license(
    dir: Option<&Path>
) -> Result<(Option<PathBuf>, Option<String>), RDFStoreError>
Expand description

Find the license file in the given directory or in the home directory or check the environment variable RDFOX_LICENSE_CONTENT (which takes precedence).

If the environment variable RDFOX_LICENSE_CONTENT is set, then the content of the license file is returned as the second element of the tuple.