()
| 49 | } |
| 50 | |
| 51 | async function createFile() { |
| 52 | const fileName = `file_${Date.now()}.txt`; |
| 53 | const fileHandle = await rootHandle.getFileHandle(fileName, { |
| 54 | create: true, |
| 55 | }); |
| 56 | const writable = await fileHandle.createWritable(); |
| 57 | const text = loremIpsum.repeat(Math.floor(Math.random() * 20) + 1); |
| 58 | await writable.write(text); |
| 59 | await writable.close(); |
| 60 | logMessage(`✅ Created file "${fileName}"`); |
| 61 | } |
| 62 | |
| 63 | async function deleteFile() { |
| 64 | const fileHandle = await getRandomFileHandle(); |
nothing calls this directly
no test coverage detected