Skip to main content

contains

Method
This is a method of the Workspace class in the workspace module.
Check if a path is contained within this workspace.

Signature

Parameters

str \| Path
required
Path to check (string or Path object)

Returns

bool
True if path is within workspace boundaries

Uses

  • resolve

Source

View on GitHub

praisonaiagents/workspace/__init__.py at line 53