MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / safe_path

Method safe_path

src/opencdeserver/api/app/database/neo4j.py:51–53  ·  view source on GitHub ↗
(path_name)

Source from the content-addressed store, hash-verified

49
50 @staticmethod
51 def safe_path(path_name):
52 safe_path_name = "".join(x for x in path_name if x.isalnum() or "-")
53 return safe_path_name
54
55 @staticmethod
56 def debug(endpoint: str, request, response):

Callers 2

upload_completionFunction · 0.80
upload_cancellationFunction · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected