import * as deno from "https://deno.land/x/deno@v0.22.0/std/fs/mod.ts";
Functions
f copy | Copy a file or directory. The directory can have contents. Like |
Copy a file or directory. The directory can have contents. Like | |
Detect the EOL character for string input. returns null if no newline | |
Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. | |
Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. | |
Ensures that the file exists. If the file that is requested to be created is in directories that do not exist. these directories are created. If the file already exists, it is NOTMODIFIED. | |
Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the link exists. If the directory structure does not exist, it is created. | |
Ensures that the link exists. If the directory structure does not exist, it is created. | |
Test whether or not the given path exists by checking with the file system | |
Test whether or not the given path exists by checking with the file system | |
Expand the glob string from the specified | |
Synchronous version of | |
Format the file to the targeted EOL | |
f move | Moves a file or directory |
Moves a file or directory | |
Read file and output it as a string. | |
Read file synchronously and output it as a string. | |
Reads a JSON file and then parses it into an object | |
Reads a JSON file and then parses it into an object | |
f walk | Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient. |
Same as walk() but uses synchronous ops | |
Write the string to file. | |
Write the string to file synchronously. | |