10000 Link target path from link name · rubensa/typescript.java@03db520 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03db520

Browse files
authored
Link target path from link name
As commented by @angelozerr (but not tested as It seems that if you include a "hard link" in a .tar.gz archive, no link information is kept)
1 parent 655767b commit 03db520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ts.core/src/ts/utils/ZipUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public static void extractTar(File file, File destination) throws IOException {
178178
if (!linkBaseDir.exists()) {
179179
linkBaseDir.mkdirs();
180180
}
181-
Path target = new File(linkFile.getParentFile(), entry.getLinkName()).toPath();
181+
Path target = Paths.get(entry.getLinkName());
182182
Files.createLink(linkFile.toPath(), target);
183183
break;
184184
case TarEntry.SYM_LINK:

0 commit comments

Comments
 (0)
0