Skip to content

Commit f72751f

Browse files
LittleXianyuliuyunpeng
andauthored
fix: fix new File by only fileName (microsoft#2149)
Co-authored-by: liuyunpeng <liuyunpeng@innotechx.com>
1 parent fa81954 commit f72751f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)