+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user