Package com.atlassian.plugin.util
Class FileUtils
java.lang.Object
com.atlassian.plugin.util.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconditionallyExtractZipFile(URL zipUrl, File destDir) Extract the zip from the URL into the destination directory, but only if the contents haven't already been unzipped.
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
conditionallyExtractZipFile
Extract the zip from the URL into the destination directory, but only if the contents haven't already been unzipped. If the directory contains different contents than the zip, the directory is cleaned out and the files are unzipped.- Parameters:
zipUrl- The zip urldestDir- The destination directory for the zip contents
-