Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit f72751f

Browse files
LittleXianyuliuyunpeng
andauthored
fix: fix new File by only fileName (#2149)
Co-authored-by: liuyunpeng <[email protected]>
1 parent fa81954 commit f72751f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/app/src/main/java/com/microsoft/codepush/react/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static void unzipFile(File zipFile, String destination) throws IOExceptio
156156
byte[] buffer = new byte[WRITE_BUFFER_SIZE];
157157
while ((entry = zipStream.getNextEntry()) != null) {
158158
String fileName = validateFileName(entry.getName(), destinationFolder);
159-
File file = new File(destinationFolder, fileName);
159+
File file = new File(fileName);
160160
if (entry.isDirectory()) {
161161
file.mkdirs();
162162
} else {

0 commit comments

Comments
 (0)