Skip to main content

has_traversal_component

Function
This function is defined in the workspace module.
Check if a path contains directory traversal components.

Signature

Parameters

str
required
Path string to check

Returns

bool
True if path contains ’..’ or other suspicious patterns

Uses

  • Path

Used By

Source

View on GitHub

praisonaiagents/workspace/__init__.py at line 170