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
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: