zhongjingxiong commented on a change in pull request #35278:
URL: https://github.com/apache/spark/pull/35278#discussion_r790401173



##########
File path: core/src/main/scala/org/apache/spark/util/Utils.scala
##########
@@ -605,6 +603,29 @@ private[spark] object Utils extends Logging {
     }
   }
 
+  def unZip(inFile: File, unzipDir: File): Unit = {
+    if (!unzipDir.mkdirs && !unzipDir.isDirectory) {
+      throw new IOException("Mkdirs failed to create " + unzipDir)
+    } else {
+      if (Shell.WINDOWS) {
+        FileUtil.unZip(inFile, unzipDir)

Review comment:
       Because the zip file is decompressed by creating a new file, the 
permission cannot be saved, but the metadata of the permission can be saved 
when the unzip command is executed on Linux, but I don't know what special 
processing is done by the unzip command in Linux. Moreover, I found many API 
attempts of zip, and found that they were similar to the unzip of JDK, and 
there was no way to save the permission information.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to