MCPcopy
hub / github.com/WebODM/WebODM / get_plugins_persistent_path

Function get_plugins_persistent_path

app/plugins/functions.py:309–310  ·  view source on GitHub ↗
(*paths)

Source from the content-addressed store, hash-verified

307 ]
308
309def get_plugins_persistent_path(*paths):
310 return path_traversal_check(os.path.join(settings.MEDIA_ROOT, "plugins", *paths), os.path.join(settings.MEDIA_ROOT, "plugins"))
311
312def get_dynamic_script_handler(script_path, callback=None, **kwargs):
313 def handleRequest(request):

Callers 8

plugin_uploadMethod · 0.90
test_core_pluginsMethod · 0.90
test_plugin_loadingMethod · 0.90
get_persistent_pathMethod · 0.90
is_persistentMethod · 0.90
init_pluginsFunction · 0.85
get_plugins_pathsFunction · 0.85
delete_pluginFunction · 0.85

Calls 1

path_traversal_checkFunction · 0.90

Tested by 2

test_core_pluginsMethod · 0.72
test_plugin_loadingMethod · 0.72