From 0f018100c04d49eabf7648acffd165843f2f0b6c Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 1 Dec 2024 16:32:56 -0700 Subject: [PATCH 1/3] Update runtime-fs.md --- deploy/api/runtime-fs.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deploy/api/runtime-fs.md b/deploy/api/runtime-fs.md index 2e2301cb1..7df4821bb 100644 --- a/deploy/api/runtime-fs.md +++ b/deploy/api/runtime-fs.md @@ -14,15 +14,15 @@ files are for example: The APIs that are available are: -- [Deno.cwd](#denocwd) -- [Deno.readDir](#denoreaddir) -- [Deno.readFile](#denoreadfile) -- [Deno.readTextFile](#denoreadtextfile) -- [Deno.open](#denoopen) -- [Deno.stat](#denostat) -- [Deno.lstat](#denolstat) -- [Deno.realPath](#denorealpath) -- [Deno.readLink](#denoreadlink) +- [Deno.cwd](#deno.cwd) +- [Deno.readDir](#deno.readdir) +- [Deno.readFile](#deno.readfile) +- [Deno.readTextFile](#deno.readtextfile) +- [Deno.open](#deno.open) +- [Deno.stat](#deno.stat) +- [Deno.lstat](#deno.lstat) +- [Deno.realPath](#deno.realpath) +- [Deno.readLink](#deno.readlink) ## Deno.cwd From cb20a607556919a5197df6ebdcb894401c55d364 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 1 Dec 2024 16:36:17 -0700 Subject: [PATCH 2/3] fix in the body too --- deploy/api/runtime-fs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/api/runtime-fs.md b/deploy/api/runtime-fs.md index 7df4821bb..40ff1a358 100644 --- a/deploy/api/runtime-fs.md +++ b/deploy/api/runtime-fs.md @@ -200,7 +200,7 @@ Deno.serve(handler); `Deno.open()` allows you to open a file, returning a file handle. This file handle can then be used to read the contents of the file. See -[`Deno.File`](#denofile) for information on the methods available on the file +[`Deno.File`](#deno.file) for information on the methods available on the file handle. The function definition is similar to @@ -241,7 +241,7 @@ the file descriptor: `const iterator = fd.readable[Symbol.asyncIterator]();` ## Deno.File -`Deno.File` is a file handle returned from [`Deno.open()`](#denoopen). It can be +`Deno.File` is a file handle returned from [`Deno.open()`](#deno.open). It can be used to read chunks of the file using the `read()` method. The file handle can be closed using the `close()` method. @@ -330,8 +330,8 @@ The path can be a relative or absolute. It can also be a `file:` URL. ## Deno.FileInfo The `Deno.FileInfo` interface is used to represent a file system entry's -metadata. It is returned by the [`Deno.stat()`](#denostat) and -[`Deno.lstat()`](#denolstat) functions. It can represent either a file, a +metadata. It is returned by the [`Deno.stat()`](#deno.stat) and +[`Deno.lstat()`](#deno.lstat) functions. It can represent either a file, a directory, or a symlink. In Deno Deploy, only the file type, and size properties are available. The size From ce9cbc5501e1f11b36bbc34b8e73ccdb841c3d1f Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 2 Dec 2024 16:15:30 +0900 Subject: [PATCH 3/3] fmt --- deploy/api/runtime-fs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/api/runtime-fs.md b/deploy/api/runtime-fs.md index 40ff1a358..2b63bfc15 100644 --- a/deploy/api/runtime-fs.md +++ b/deploy/api/runtime-fs.md @@ -241,9 +241,9 @@ the file descriptor: `const iterator = fd.readable[Symbol.asyncIterator]();` ## Deno.File -`Deno.File` is a file handle returned from [`Deno.open()`](#deno.open). It can be -used to read chunks of the file using the `read()` method. The file handle can -be closed using the `close()` method. +`Deno.File` is a file handle returned from [`Deno.open()`](#deno.open). It can +be used to read chunks of the file using the `read()` method. The file handle +can be closed using the `close()` method. The interface is similar to [Deno](https://docs.deno.com/api/deno/~/Deno.File), but it doesn't support writing to the file, or seeking. Support for the latter