Skip to content

add entry.getMode() #102

@thejoshwolfe

Description

@thejoshwolfe

This issue was raised in #101.

We should implement a function to read externalFileAttributes and return the mode aka permission bits. it might be as simple as:

Entry.prototype.getMode = function() {
  return entry.externalFileAttributes >>> 16;
}

but this may only be correct when the entry is made by a unix zipfile creator. We should investigate how various zipfile creators encode permissions, especially windows clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions