public class FileUtilities
extends java.lang.Object
| Constructor and Description |
|---|
FileUtilities() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
replaceFile(java.io.File sourceFile,
java.io.File destinationFile)
Move a file from source to destination, and replace the destination file if it exists.
|
void |
unzipArchive(java.lang.String zipFile,
java.lang.String destinationDirectory)
Unzips the downloaded modpack ZIP-archive to the specified directory.
|
public boolean replaceFile(java.io.File sourceFile,
java.io.File destinationFile)
throws java.io.IOException
sourceFile - The source file.destinationFile - The destination file to be replaced by the source file.java.io.IOException - Thrown if an error occurs when the file is moved.public void unzipArchive(java.lang.String zipFile,
java.lang.String destinationDirectory)
zipFile - String. The path to the ZIP-archive which we want to unzip.destinationDirectory - The directory into which the ZIP-archive will be unzipped into.