com.atlassian.plugin.util
Class FileUtils

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

public class FileUtils
extends java.lang.Object


Constructor Summary
FileUtils()
           
 
Method Summary
static void conditionallyExtractZipFile(java.net.URL zipUrl, java.io.File destDir)
          Extract the zip from the URL into the destination directory, but only if the contents haven't already been unzipped.
static void deleteDir(java.io.File directory)
          Deprecated. Since 2.0.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

conditionallyExtractZipFile

public static void conditionallyExtractZipFile(java.net.URL zipUrl,
                                               java.io.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

deleteDir

public static void deleteDir(java.io.File directory)
Deprecated. Since 2.0.0



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.