com.atlassian.plugin.util
Class FileUtils
java.lang.Object
com.atlassian.plugin.util.FileUtils
public class FileUtils
- extends Object
|
Method Summary |
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. |
static void |
deleteDir(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 |
FileUtils
public FileUtils()
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 urldestDir - The destination directory for the zip contents
deleteDir
public static void deleteDir(File directory)
- Deprecated. Since 2.0.0
Copyright © 2010 Atlassian. All Rights Reserved.