summaryrefslogtreecommitdiff
path: root/js/stat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/stat.ts')
-rw-r--r--js/stat.ts12
1 files changed, 4 insertions, 8 deletions
diff --git a/js/stat.ts b/js/stat.ts
index d734115e6..4d04ea221 100644
--- a/js/stat.ts
+++ b/js/stat.ts
@@ -8,8 +8,7 @@ import { FileInfo, FileInfoImpl } from "./file_info";
/** Queries the file system for information on the path provided. If the given
* path is a symlink information about the symlink will be returned.
*
- * import { lstat } from "deno";
- * const fileInfo = await lstat("hello.txt");
+ * const fileInfo = await Deno.lstat("hello.txt");
* assert(fileInfo.isFile());
*/
export async function lstat(filename: string): Promise<FileInfo> {
@@ -20,8 +19,7 @@ export async function lstat(filename: string): Promise<FileInfo> {
* If the given path is a symlink information about the symlink will be
* returned.
*
- * import { lstatSync } from "deno";
- * const fileInfo = lstatSync("hello.txt");
+ * const fileInfo = Deno.lstatSync("hello.txt");
* assert(fileInfo.isFile());
*/
export function lstatSync(filename: string): FileInfo {
@@ -31,8 +29,7 @@ export function lstatSync(filename: string): FileInfo {
/** Queries the file system for information on the path provided. `stat` Will
* always follow symlinks.
*
- * import { stat } from "deno";
- * const fileInfo = await stat("hello.txt");
+ * const fileInfo = await Deno.stat("hello.txt");
* assert(fileInfo.isFile());
*/
export async function stat(filename: string): Promise<FileInfo> {
@@ -42,8 +39,7 @@ export async function stat(filename: string): Promise<FileInfo> {
/** Queries the file system for information on the path provided synchronously.
* `statSync` Will always follow symlinks.
*
- * import { statSync } from "deno";
- * const fileInfo = statSync("hello.txt");
+ * const fileInfo = Deno.statSync("hello.txt");
* assert(fileInfo.isFile());
*/
export function statSync(filename: string): FileInfo {