Bun.file() 함수는 경로를 허용하며 BunFile 인스턴스를 반환합니다. 파일을 삭제하려면 .delete() 메서드를 사용합니다.
ts
const path = "/path/to/file.txt";
const file = Bun.file(path);
await file.delete();Bun.file() 의 전체 문서는 문서 > API > 파일 I/O 를 참조하세요.