Readonly
fullFull path of the file system object
Readonly
kindFile kind: always "file"
Readonly
nameName of the file or directory
Readonly
parentsParent 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.
Optional
options: 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