public class

FileUtils

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

Summary

Public Constructors
FileUtils()
Public Methods
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)
This method is deprecated. Since 2.0.0
static File toFile(URL url)
If possible, return the File equivalent of a URL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileUtils ()

Public Methods

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

public static void deleteDir (File directory)

This method is deprecated.
Since 2.0.0

public static File toFile (URL url)

If possible, return the File equivalent of a URL.

Returns
  • the file, or null if it does not represent a file