files
files
WorkspaceFileMixin
workspace
instance-attribute
workspace: Path
delete_file
delete_file(path: str | Path) -> None
get_bytes
get_bytes(path: str | Path) -> bytes
get_file
get_file(
path: str | Path, *, encoding: str = "utf-8"
) -> str
list_files
list_files(pattern: str = '**/*') -> list[Path]
put_bytes
put_bytes(path: str | Path, content: bytes) -> Path
put_file
put_file(
path: str | Path,
content: str,
*,
encoding: str = "utf-8",
) -> Path
_is_within
_is_within(root: Path, target: Path) -> bool