Skip to content

TarExtractor not handling directories correctly? #20

@feichh

Description

@feichh

Im trying to use the action "org.meshpoint.anode.INSTALL", I noticed the org.meshpoint.anode.util.TarExtractor does not deal with directories corretly.
My temp solution for this is as follows (~l.60f):
if (entry.isDirectory()) {
entryFile.mkdir();
} else {
FileOutputStream fos = new FileOutputStream(entryFile);
BufferedOutputStream bos = new BufferedOutputStream(fos);
while ((count = tis.read(buf)) != -1) {
bos.write(buf, 0, count);
}
bos.flush();
bos.close();
}

Maybe you want to take a look at this.

cheers

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