Skip to content

getEntries/getEntry no longer read files in folder on archives created with version >= 0.5.13 #521

Closed
@Arkellys

Description

@Arkellys

A bug was introduced on version 0.5.13 which affect reading files inside folders. I only tested the methods getEntries() and readFileAsync() (which uses getEntry()), but I suppose this bug does not affect only these two. Here are some test cases:

Whether I test on v0.5.12 or v0.5.13:

  • For an archive created with v0.5.12

    • getEntries() -> returns root files + files in folder, with entryName as: folder/file.jpg
    • getEntry() -> works as expected
  • For an archive created with v0.5.13

    • getEntries() -> returns root files + files in folder, with entryName as: folder\\file.jpg
    • getEntry() -> returns an error (via readFileAsync()): getEntry failed for:folder/file.jpg

Additionnaly, I can see that for both archives all the files and folders are here and with the correct names. Extracting all works as expected.

Something messing up the paths?

--

Versions:

  • Node v20.9.0
  • Windows 10

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