Skip to main content

Module find

Module find 

Source
Expand description

Resolving a recipe name or path to a file on disk, and walking a whole collection of them.

Constants§

REFERENCE_SEPARATOR
Re-exported from cooklang_format, which is where the writers that depend on this spelling now live. The separator a recipe reference’s path is built and reported with.

Functions§

get_recipe
Look name up under base_path, returning the file it resolves to.
is_safe_relative_path
Whether path, joined to a directory, is sure to stay inside it.
resolve_reference
Resolve a recipe reference to a path relative to the collection root.