py_research.files module
Helper functions for handling files and directories.
-
ensure_dir_exists(path)[source]
Make sure the given path exists and is a directory.
Create dir if necessary. Then return the path unchanged.
- Parameters:
path (Path | str) – Path to ensure exists.
- Returns:
The given path.