vcorelib.paths.context
index
/home/vkottler/src/vkottler/workspace/vcorelib/vcorelib/paths/context.py

A module for context managers related to file-system paths.

 
Functions
       
in_dir(path: Union[pathlib.Path, str, NoneType], *parts: Union[str, pathlib.Path], makedirs: bool = False) -> Iterator[pathlib.Path]
Change the current working directory as a context manager.
linked_to(link: Union[pathlib.Path, str, NoneType], target: Union[pathlib.Path, str, NoneType], *parts: Union[str, pathlib.Path], target_is_directory: bool = False) -> Iterator[pathlib.Path]
Provide a symbolic link as a managed context.
tempfile(*args, **kwargs) -> Iterator[pathlib.Path]
Get a valid path to a temporary file and guarantee that its cleaned up
afterwards.