be.ac.ua.broker.utils
Class FolderUtils

java.lang.Object
  extended by be.ac.ua.broker.utils.FolderUtils

public class FolderUtils
extends java.lang.Object

This class contains some file utilities needed in the application. It provides static methods to delete all files and/or folders in a file folder.

Author:
Vermeersch Kurt

Constructor Summary
FolderUtils()
           
 
Method Summary
static void removeFilesAndFoldersInFolder(java.lang.String folder)
          Remove all the files and folders found at the given path
static void removeFilesInFolder(java.lang.String folder)
          Remove all the files found at the given path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderUtils

public FolderUtils()
Method Detail

removeFilesInFolder

public static void removeFilesInFolder(java.lang.String folder)
Remove all the files found at the given path

Parameters:
folder - the path to the folder of which to remove all files

removeFilesAndFoldersInFolder

public static void removeFilesAndFoldersInFolder(java.lang.String folder)
Remove all the files and folders found at the given path

Parameters:
folder - the path to the folder of which to remove all files and folders