MCPcopy
hub / github.com/gildas-lormeau/zip.js / createFileEntry

Function createFileEntry

index-native.cjs:5012–5186  ·  view source on GitHub ↗
(reader, writer, { diskNumberStart, lock }, entryInfo, config, options)

Source from the content-addressed store, hash-verified

5010}
5011
5012async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryInfo, config, options) {
5013 const {
5014 headerInfo,
5015 dataDescriptorInfo,
5016 metadataSize
5017 } = entryInfo;
5018 const {
5019 headerArray,
5020 headerView,
5021 lastModDate,
5022 rawLastModDate,
5023 encrypted,
5024 compressed,
5025 version,
5026 compressionMethod,
5027 rawExtraFieldZip64,
5028 localExtraFieldZip64Length,
5029 rawExtraFieldExtendedTimestamp,
5030 extraFieldExtendedTimestampFlag,
5031 rawExtraFieldNTFS,
5032 rawExtraFieldUnix,
5033 rawExtraFieldAES,
5034 } = headerInfo;
5035 const { dataDescriptorArray } = dataDescriptorInfo;
5036 const {
5037 rawFilename,
5038 lastAccessDate,
5039 creationDate,
5040 password,
5041 rawPassword,
5042 level,
5043 zip64,
5044 zip64UncompressedSize,
5045 zip64CompressedSize,
5046 zipCrypto,
5047 dataDescriptor,
5048 directory,
5049 executable,
5050 versionMadeBy,
5051 rawComment,
5052 rawExtraField,
5053 useWebWorkers,
5054 transferStreams,
5055 onstart,
5056 onprogress,
5057 onend,
5058 signal,
5059 encryptionStrength,
5060 extendedTimestamp,
5061 msDosCompatible,
5062 internalFileAttributes,
5063 externalFileAttributes,
5064 uid,
5065 gid,
5066 unixMode,
5067 setuid,
5068 setgid,
5069 sticky,

Callers 1

getFileEntryFunction · 0.70

Calls 4

getChunkSizeFunction · 0.70
runWorkerFunction · 0.70
setEntryInfoFunction · 0.70
writeDataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…