include mime type in getFile
Release / release (push) Successful in 24s

This commit is contained in:
2025-12-30 12:03:26 -08:00
parent 586b3f0bd7
commit 1fa35ba82e
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ const writable = await file_handle.createWritable()
writable.write('Hello World!')
writable.close()
const file = await file_handle.getFile()
const file_text = await file.text()
console.log(file_text)
console.log(file.type)
console.log(await file.text())
const result = await cwd_directory_handle.getFileHandle('test/test.txt').catch(error => 'blocked path traversal')
if (typeof result === 'string') console.log(result)
else console.error('path traversal not blocked')