2024-01-01 21:11:32 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2022-08-11 11:51:20 +00:00
|
|
|
|
2022-11-25 11:40:23 +00:00
|
|
|
/**
|
|
|
|
* Helpers for working with the filesystem.
|
2022-08-11 11:51:20 +00:00
|
|
|
*
|
2024-09-19 23:29:31 +00:00
|
|
|
* ```ts ignore
|
2024-04-29 02:57:30 +00:00
|
|
|
* import { ensureFile, copy, ensureDir, move } from "@std/fs";
|
2024-03-27 06:28:06 +00:00
|
|
|
*
|
|
|
|
* await ensureFile("example.txt");
|
2024-06-07 03:54:50 +00:00
|
|
|
*
|
2024-03-27 06:28:06 +00:00
|
|
|
* await copy("example.txt", "example_copy.txt");
|
2024-06-07 03:54:50 +00:00
|
|
|
*
|
2024-03-27 06:28:06 +00:00
|
|
|
* await ensureDir("subdir");
|
2024-06-07 03:54:50 +00:00
|
|
|
*
|
2024-03-27 06:28:06 +00:00
|
|
|
* await move("example_copy.txt", "subdir/example_copy.txt");
|
|
|
|
* ```
|
|
|
|
*
|
2022-06-26 09:13:48 +00:00
|
|
|
* @module
|
|
|
|
*/
|
|
|
|
|
2019-04-08 13:29:44 +00:00
|
|
|
export * from "./empty_dir.ts";
|
|
|
|
export * from "./ensure_dir.ts";
|
|
|
|
export * from "./ensure_file.ts";
|
2019-04-22 15:35:14 +00:00
|
|
|
export * from "./ensure_link.ts";
|
2019-04-22 12:18:45 +00:00
|
|
|
export * from "./ensure_symlink.ts";
|
2019-04-08 13:29:44 +00:00
|
|
|
export * from "./exists.ts";
|
2019-10-16 18:39:33 +00:00
|
|
|
export * from "./expand_glob.ts";
|
2019-04-08 13:29:44 +00:00
|
|
|
export * from "./move.ts";
|
2022-02-01 10:16:37 +00:00
|
|
|
export * from "./copy.ts";
|
2019-04-08 13:29:44 +00:00
|
|
|
export * from "./walk.ts";
|
|
|
|
export * from "./eol.ts";
|