refactor
Release / release (push) Successful in 24s

This commit is contained in:
2026-02-16 15:57:22 -08:00
parent e99fc35e25
commit 8bc2c7d70c
5 changed files with 78 additions and 72 deletions
+2 -1
View File
@@ -12,8 +12,9 @@ for (let i = 0; i < 10000; i++) {
await writable.write(textText)
await writable.close()
const file = await file_handle.getFile()
console.log(file.webkitRelativePath)
const text = await file.text()
if(text!==textText) throw new Error("failed to read back written data")
if (text !== textText) throw new Error("failed to read back written data")
}
const result = await cwd_directory_handle.getFileHandle('test/test.txt').catch(error => 'blocked path traversal')
if (typeof result === 'string') console.log(result)