Interface FsInterface
Methods
append
- append(filename: string, content: string): void
-
Parameters
-
filename: string
-
content: string
Returns void
exists
- exists(filename: string): boolean
-
Parameters
Returns boolean
read
- read(filename: string): string
-
Parameters
Returns string
readBytes
- readBytes(filename: string): Uint8Array
-
Parameters
Returns Uint8Array
remove
- remove(filename: string): void
size
- size(filename: string): number
-
Parameters
Returns number
write
- write(filename: string, content: string): void
-
Parameters
-
filename: string
-
content: string
Returns void
An interface to define multiple types of file systems.
(c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors. SPDX-License-Identifier: MIT