Skip to main content
On this page

@std/fs

Overview Jump to heading

Helpers for working with the filesystem.

import { ensureFile, copy, ensureDir, move } from "@std/fs";

await ensureFile("example.txt");

await copy("example.txt", "example_copy.txt");

await ensureDir("subdir");

await move("example_copy.txt", "subdir/example_copy.txt");

Add to your project Jump to heading

deno add jsr:@std/fs

See all symbols in @std/fs on

Did you find what you needed?

Privacy policy