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. Use Commons IO FileUtils.deleteDirectory(java.io.File) instead. |
static File |
toFile(URL url)
Deprecated. Since 3.0. Use Commons IO FileUtils.toFile(java.net.URL) instead. |
| 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
toFile
@Deprecated
public static File toFile(URL url)
- Deprecated. Since 3.0. Use Commons IO
FileUtils.toFile(java.net.URL) instead.
- If possible, return the File equivalent of a URL.
- Returns:
- the file, or null if it does not represent a file
deleteDir
@Deprecated
public static void deleteDir(File directory)
- Deprecated. Since 2.0.0. Use Commons IO
FileUtils.deleteDirectory(java.io.File) instead.
Copyright © 2015 Atlassian. All rights reserved.