mirror of
https://github.com/0x5eal/luau-unzip.git
synced 2025-04-10 17:20:53 +01:00
fix: set isText
field instead of isAscii
This commit is contained in:
parent
ecace02e7f
commit
0400a3b05c
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ type ZipEntryInner = {
|
||||||
method: CompressionMethod, -- Method used to compress the file
|
method: CompressionMethod, -- Method used to compress the file
|
||||||
crc: number, -- CRC32 checksum of uncompressed data
|
crc: number, -- CRC32 checksum of uncompressed data
|
||||||
isDirectory: boolean, -- Whether the entry is a directory or not
|
isDirectory: boolean, -- Whether the entry is a directory or not
|
||||||
isText: boolean, -- Whether the entry is plain ASCII text or binary
|
isText: boolean, -- Whether the entry is plain ASCII text or binary
|
||||||
attributes: number, -- File attributes
|
attributes: number, -- File attributes
|
||||||
parent: ZipEntry?, -- The parent of the current entry, nil for root
|
parent: ZipEntry?, -- The parent of the current entry, nil for root
|
||||||
children: { ZipEntry }, -- The children of the entry
|
children: { ZipEntry }, -- The children of the entry
|
||||||
|
@ -328,7 +328,7 @@ function ZipReader.parseCentralDirectory(self: ZipReader): ()
|
||||||
method = DECOMPRESSION_ROUTINES[compressionMethod].name :: CompressionMethod,
|
method = DECOMPRESSION_ROUTINES[compressionMethod].name :: CompressionMethod,
|
||||||
timestamp = timestamp,
|
timestamp = timestamp,
|
||||||
attributes = externalAttrs,
|
attributes = externalAttrs,
|
||||||
isAscii = bit32.band(internalAttrs, 0x0001) ~= 0,
|
isText = bit32.band(internalAttrs, 0x0001) ~= 0,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue