Fix #2338 - Added explicit fs.revoke(path) (#2368)

This commit is contained in:
Andrea Giammarchi
2025-08-06 14:40:52 +02:00
committed by GitHub
parent a129be8136
commit b4e9a3093c
5 changed files with 46 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ if TEST == "implicit":
await fs.sync("/persistent")
# await fs.revoke("/persistent")
elif not RUNNING_IN_WORKER:
from pyscript import document
@@ -39,7 +41,7 @@ elif not RUNNING_IN_WORKER:
js.alert("unable to grant access")
async def unmount(event):
await fs.unmount("/persistent")
await fs.revoke("/persistent")
button.textContent = "mount"
button.onclick = mount