AbstractReadonlyfullFull path of the file system object
Abstract ReadonlykindType of the file system object: "file" or "directory"
ReadonlynameName of the file or directory
ReadonlyparentsParent directories as an array of strings
AbstractcreateCreate the file or directory in OPFS.
The underlying FileSystemDirectoryHandle or FileSystemFileHandle.
AbstractexistsCheck if the file or directory exists.
true if the object exists, false otherwise.
Abstractremove
Base class for OPFS file system objects (files and directories). Provides common properties such as full path, name, and parent directories.
Remarks
This class is abstract and should not be instantiated directly. Use
OPFileorOPDirfor working with files and directories.Example