Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.06 KB

OPFSDirectory.md

File metadata and controls

17 lines (15 loc) · 1.06 KB

OPFSDirectory

Usage (in script)

import { OPFSDirectory } from "nci-opfs"

Methods

Property / Method Description
new OPFSDirectory(path) path represent a OPFS path
type() Type of OPFS object. 'directory' as string
path() String representing the path of this directory
ls() Get all entries of the directory. The entries are OPFSFile and/or OPFSDirectory objects
exists() true if the path exists, false if not.
rename() Not implemented yet.
delete() Not implemented yet.