OptionalcontentFile: JSZipObjectOptionalmetaFile: JSZipObjectReadonlyarchiveReadonlycomponentName of the component (e.g. MyClass) to which this file belongs.
ReadonlycomponentType of the component (e.g. ApexClass)
Private Optional ReadonlycontentPrivate Optional ReadonlymetaReadonlypackagePackage path of the file, if a single package the package path will be the same as archivePath.
Compressed size of the file in bytes.
CRC32 checksum of the file.
Gets the base name of the archive file path, excluding any directory components.
The file name portion of the archive path.
Uncompressed size of the file in bytes.
Gets the relative path of the archive file.
The directory name of the archive path specified by this.archivePath.
Returns the content of the file as a buffer.
Expand the metadata file into its constituent parts, such as content and metadata files.
This method uses the MetadataExpander to expand the metadata file and returns a
record of the expanded files.
A record of expanded files where the keys are the file names and the values are the file contents as buffers.
Extracts and writes expanded metadata files to the specified target folder.
This method uses the MetadataExpander to expand the current metadata object,
then writes each expanded file to the given target directory. The method returns
a list of the relative file paths that were written.
The absolute or relative path to the folder where the expanded files will be written.
A promise that resolves to an array of file paths representing the files that were written.
Gets a buffer of the file contents.
Optionaltype: "content"Buffer of the file contents.
Gets a buffer of the file contents.
Optionaltype: RetrieveResultFileTypeBuffer of the file contents.
PrivategetOptionaltype: "content"Optionaltype: RetrieveResultFileTypeGets a readable stream of the file contents.
Stream of the file contents.
When metadata is split between content and meta files, this method returns the metadata associated to the content as (parsed) XML object.
@attributes property.@type property.Note: This only returns metadata for components that have a separate content and metadata files.
Path of the file in the zip archive; when a single package is retrieved this is the same as packagePath.