testexec#

class ExecutionSpace(root: pathlib.Path, path: pathlib.Path, session: str | None = None)#

Bases: object

root: Path#
path: Path#
session: str | None = None#
asdict() dict[str, Any]#
classmethod from_dict(state: dict[str, Any]) ExecutionSpace#
property dir: Path#
create(exist_ok: bool = False) None#
remove(missing_ok: bool = False) None#
enter() Generator[None, None, None]#
openfile(name: Path | str, mode: str = 'r') Generator[IO[Any], None, None]#
exists() bool#
touch(name: Path | str, exist_ok: bool = False) None#
copy(src: Path, dst: Path | str | None = None) None#

Copy the file at src to this workspace with name dst

Symlink the file at src to this workspace with name dst

joinpath(*parts: Path | str) Path#