Skip to main content
Module

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

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
class Deno.FsFile
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { FsFile } = Deno;

The Deno abstraction for reading and writing files.

Constructors

new
FsFile(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