The CID of the entry
The name the entry is stored under within the directory
The path of the entry within the containing directory structure
This is the reported size of the entry - it is taken from the Tsize of the PBLink and may not be the same as the actual file size
A disambiguator to allow TypeScript to work out the type of the entry.
Passing offset and/or length to entry.content() will limit the number
of files returned from the directory.
const entries = []
for await (const entry of dir.content({
offset: 0,
length: 5
})) {
entries.push(entry)
}
// `entries` contains the first 5 files/directories in the directory
Optionaloptions: ExportContentOptions
If the entry is a directory,
entry.entries()returns furtherentryobjects: