mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
Fix extract...
This commit is contained in:
parent
b344fee33a
commit
0fee980626
@ -386,7 +386,7 @@ public class PojavLoginActivity extends AppCompatActivity
|
||||
return new File(selectedFile.toString());
|
||||
}
|
||||
|
||||
private void uncompressTarXZ(final File tarFile, final File dest) throws IOException, ErrnoException {
|
||||
private void uncompressTarXZ(final File tarFile, final File dest) throws IOException {
|
||||
|
||||
dest.mkdir();
|
||||
TarArchiveInputStream tarIn = null;
|
||||
@ -424,7 +424,11 @@ public class PojavLoginActivity extends AppCompatActivity
|
||||
File destPath = new File(dest, tarEntry.getName());
|
||||
if (tarEntry.isSymbolicLink()) {
|
||||
destPath.getParentFile().mkdirs();
|
||||
android.system.Os.symlink(tarEntry.getName(), tarEntry.getLinkName());
|
||||
try {
|
||||
android.system.Os.symlink(tarEntry.getName(), tarEntry.getLinkName());
|
||||
} catch (ErrnoException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// unpackShell.writeToProcess("ln -s " + tarEntry.getName() + " " + tarEntry.getLinkName());
|
||||
} else if (tarEntry.isDirectory()) {
|
||||
destPath.mkdirs();
|
||||
|
Loading…
x
Reference in New Issue
Block a user