rabbit.io
Class FileHelper
java.lang.Object
rabbit.io.FileHelper
public class FileHelper
- extends Object
Helper class for common file operations.
- Author:
- Robert Olofsson
Method Summary |
static void |
delete(File toDelete)
Try to delete a file. |
static void |
mkdirs(File newDir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHelper
public FileHelper()
delete
public static void delete(File toDelete)
throws IOException
- Try to delete a file.
- Parameters:
toDelete
- the file to delete
- Throws:
NullPointerException
- if toDelete is null
IOException
- if file deletion failed
mkdirs
public static void mkdirs(File newDir)
throws IOException
- Throws:
IOException