import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() // Create a new file await sandbox.files.write('test_file.txt', 'Hello, world!') // Get information about the file const info = await sandbox.files.getInfo('test_file.txt') console.log(info) // { // name: 'test_file.txt', // type: 'file', // path: '/home/user/test_file.txt', // size: 13, // mode: 0o644, // permissions: '-rw-r--r--', // owner: 'user', // group: 'user', // modifiedTime: '2025-05-26T12:00:00.000Z', // symlinkTarget: null // }