MCPcopy Index your code
hub / github.com/pyscript/pyscript / _check_permission

Function _check_permission

core/src/stdlib/pyscript/fs.py:56–64  ·  view source on GitHub ↗

Check if permission has been granted for a filesystem handler. Returns the handler if permission is granted, otherwise None.

(details)

Source from the content-addressed store, hash-verified

54
55
56async def _check_permission(details):
57 """
58 Check if permission has been granted for a filesystem handler. Returns
59 the handler if permission is granted, otherwise None.
60 """
61 handler = details.handler
62 options = details.options
63 permission = await handler.queryPermission(options)
64 return handler if permission == "granted" else None
65
66
67async def mount(path, mode="readwrite", root="", id="pyscript"):

Callers 1

mountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected