diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2019-04-13 23:23:19 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2019-04-13 23:23:19 +0300 |
commit | 6b92361aad38d2628111eada57c56f4af625b374 (patch) | |
tree | b31fe31afed4b6ae2de07eaa5f1ca316705ffd90 /pf4j | |
parent | 44ed78f1c2a69ea9db37bc1170fb6e83722e87b6 (diff) | |
download | pf4j-6b92361aad38d2628111eada57c56f4af625b374.tar.gz pf4j-6b92361aad38d2628111eada57c56f4af625b374.zip |
Add javadoc
Diffstat (limited to 'pf4j')
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/Unzip.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/util/Unzip.java b/pf4j/src/main/java/org/pf4j/util/Unzip.java index 7762e47..afde37a 100644 --- a/pf4j/src/main/java/org/pf4j/util/Unzip.java +++ b/pf4j/src/main/java/org/pf4j/util/Unzip.java @@ -63,10 +63,14 @@ public class Unzip { this.destination = destination; } + /** + * Extract the content of zip file ({@code source}) to destination directory. + * If destination directory already exists it will be deleted before. + */ public void extract() throws IOException { log.debug("Extract content of '{}' to '{}'", source, destination); - // delete destination file if exists + // delete destination directory if exists if (destination.exists() && destination.isDirectory()) { FileUtils.delete(destination.toPath()); } |