Skip to content

Commit 15787d5

Browse files
author
Irene Alvarado
committed
Add function to remove files
1 parent 05224d8 commit 15787d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export * from './json.ts'
22
export * from './csv.ts'
33
export * from './image.ts'
44
export * from './xlsx.ts'
5-
export * from './zip.ts'
5+
export * from './zip.ts'
6+
export * from './remove.ts'

remove.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export async function removeFile(path: string) {
2+
await Deno.remove(path)
3+
}

0 commit comments

Comments
 (0)