See PaxHeaderKey.ACCESS_TIME
for more info
See PaxHeaderKey.CHARSET
for more info
See PaxHeaderKey.COMMENT
for more info
See PaxHeaderKey.GROUP_ID
for more info
See PaxHeaderKey.GROUP_NAME
for more info
See PaxHeaderKey.HDR_CHARSET
for more info
Converts modificationTime to standard javascript epoch time.
See PaxHeaderKey.LINK_PATH
for more info
See PaxHeaderKey.MODIFICATION_TIME
for more info
See PaxHeaderKey.PATH
for more info
See PaxHeaderKey.SIZE
for more info
See PaxHeaderKey.USER_ID
for more info
See PaxHeaderKey.USER_NAME
for more info
Removes any unknown or un-standardized keys from this header.
this
for operation chaining
the value parsed from the bytes of this header for the given key,
or undefined
if the key did not exist in the header.
Parse the value for the given key as a float.
undefined if the key does not exist or the parse operation fails.
Parse the value for the given key as an int.
undefined if the key does not exist or the parse operation fails.
true if the value map of this parsed header contains the given key
an array of the keys in this header
Serializes the underlying value map of this instance into a set of PAX sectors.
Adds any necessary padding to the serialized output to ensure the length
of the output is a multiple of SECTOR_SIZE
.
See toUint8Array()
for more info.
an array of the segments in this header
Static
deserializeStatic
fromStatic
parseStatic
serializeStatic
serializeStatic
wrapWraps the given file name (if necessary) with the 'PaxHeader' metadata indicator. If the indicator already exists in the given file name, this does nothing.
Adds support for extended headers. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_03