Skip to main content

Module fs

Module fs 

Source

Functions§

project_root
Resolve the project root from (in priority order):
read_text
Read a file to a String, returning None on any I/O error.
resolve_file
Resolve file_path relative to project_dir. Returns None if the resolved path escapes the project root (traversal guard).