ReadonlyfullFull path of the file system object
ReadonlykindFile kind: always "file"
ReadonlynameName of the file or directory
ReadonlyparentsParent directories as an array of strings
Read the file as ArrayBuffer.
Copy the file to a destination directory, file handle, or OPFile.
Destination
Create the file if it does not exist.
Check whether the file exists.
Get the underlying File object.
Move the file to a destination directory, file handle, or OPFile.
Destination
Open the file for reading or writing.
Optionaloptions: TFile access mode
FileRO if mode is "read-only", else FileRW
Remove the file.
Get a ReadableStream for the file content.
Read the file as text.
Represents a file in OPFS (Origin Private File System). Provides create, read, write, copy, move operations.
Example