Code.prepend_path
You're seeing just the function
prepend_path
, go back to Code module for more information.
Specs
prepend_path(Path.t()) :: true | {:error, :bad_directory}
Prepends a path to the beginning of the Erlang VM code path list.
This is the list of directories the Erlang VM uses for finding module code.
The path is expanded with Path.expand/1
before being prepended.
If this path does not exist, an error is returned.
Examples
Code.prepend_path(".")
#=> true
Code.prepend_path("/does_not_exist")
#=> {:error, :bad_directory}