Abstract
Readonly
fullFull path of the file system object
Abstract
Readonly
kindType of the file system object: "file" or "directory"
Readonly
nameName of the file or directory
Readonly
parentsParent directories as an array of strings
Abstract
createCreate the file or directory in OPFS.
The underlying FileSystemDirectoryHandle
or FileSystemFileHandle
.
Abstract
existsCheck if the file or directory exists.
true
if the object exists, false
otherwise.
Abstract
remove
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
OPFile
orOPDir
for working with files and directories.Example