Skip to main content
Module

x/netzo/deno.d.ts>Deno.File

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
class Deno.File
Deprecated
Deprecated

Use Deno.FsFile instead. Deno.File will be removed in Deno 2.0.

import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { File } = Deno;

The Deno abstraction for reading and writing files.

Constructors

new
File(rid: number)

Properties

readonly
readable: ReadableStream<Uint8Array>
readonly
rid: number
readonly
writable: WritableStream<Uint8Array>

Methods

close(): void
read(p: Uint8Array): Promise<number | null>
readSync(p: Uint8Array): number | null
seek(offset: number, whence: SeekMode): Promise<number>
seekSync(offset: number, whence: SeekMode): number
stat(): Promise<FileInfo>
truncate(len?: number): Promise<void>
truncateSync(len?: number): void
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number