Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(fs): correct links to headings #1223

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions deploy/api/runtime-fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
Loading