Class FileUtils

java.lang.Object
com.atlassian.plugin.util.FileUtils

public class FileUtils extends Object
  • Constructor Details

    • FileUtils

      public FileUtils()
  • Method Details

    • conditionallyExtractZipFile

      public static void conditionallyExtractZipFile(URL zipUrl, File destDir)
      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 url
      destDir - The destination directory for the zip contents