openfl.interface.workspace.is_directory_traversal

openfl.interface.workspace.is_directory_traversal(directory: str | Path) bool

Check for directory traversal.

Parameters:

directory (Union[str, Path]) – The directory to check.

Returns:

bool – True if directory traversal is detected, False otherwise.