You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
so it seems jtar does not support all possible formats: kamranzafar/jtar#6
hopefully jtar will add support.
I send you a pull request with my current fix.
see, whether you can use it.
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
The text was updated successfully, but these errors were encountered: