mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
fix for root unknown file on windows
This commit is contained in:
parent
cfac52a744
commit
09a978e015
@ -576,7 +576,7 @@ public class Androlib {
|
|||||||
public void insertFile(FileSystem zipfs, File insert, String method, Path root)
|
public void insertFile(FileSystem zipfs, File insert, String method, Path root)
|
||||||
throws AndrolibException, IOException {
|
throws AndrolibException, IOException {
|
||||||
Path zipRoot = zipfs.getPath(zipfs.getSeparator());
|
Path zipRoot = zipfs.getPath(zipfs.getSeparator());
|
||||||
Path zipPath = zipfs.getPath(zipRoot + insert.getAbsolutePath().replace(root.toString(),""));
|
Path zipPath = zipfs.getPath(zipRoot.toString() + insert.getAbsolutePath().replace(root.toString(),""));
|
||||||
Path tmp = zipPath.normalize().getParent();
|
Path tmp = zipPath.normalize().getParent();
|
||||||
|
|
||||||
if (!Files.isDirectory(tmp, LinkOption.NOFOLLOW_LINKS)) {
|
if (!Files.isDirectory(tmp, LinkOption.NOFOLLOW_LINKS)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user