Represents an entry with its data and metadata in a zip file (Core API). This is a union type of DirectoryEntry and FileEntry.
Before using getData, you should check if the entry is a file.
for await (const entry of reader.getEntriesGenerator()) { if (entry.directory) continue; // entry is a FileEntry const plainTextData = await entry.getData(new TextWriter()); // Do something with the plainTextData} Copy
for await (const entry of reader.getEntriesGenerator()) { if (entry.directory) continue; // entry is a FileEntry const plainTextData = await entry.getData(new TextWriter()); // Do something with the plainTextData}
Represents an entry with its data and metadata in a zip file (Core API). This is a union type of DirectoryEntry and FileEntry.
Before using getData, you should check if the entry is a file.