org.eclipse.emf.facet.util.core.internal.exported
Class FolderUtils

java.lang.Object
  extended by org.eclipse.emf.facet.util.core.internal.exported.FolderUtils

public final class FolderUtils
extends java.lang.Object

Since:
0.2
Author:
Gabriel Barbier

Method Summary
static void clearFolder(java.io.File folder)
          This method delete the content of the folder
static void copyFolder(java.io.File srcDir, java.io.File destDir)
          Copies the source directory to the target directory.
static void copyFolder(java.io.File srcDir, java.io.File destDir, IFilter<java.lang.String> filter)
          Copies the source directory to the target directory.
static void createFolder(IFolder folder)
          This method create a folder and it parents if they do not exists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clearFolder

public static final void clearFolder(java.io.File folder)
This method delete the content of the folder

Parameters:
folder - The folder that has to be emptied

createFolder

public static void createFolder(IFolder folder)
                         throws CoreException
This method create a folder and it parents if they do not exists.

Parameters:
folder - The folder that have to be created.
Throws:
CoreException

copyFolder

public static final void copyFolder(java.io.File srcDir,
                                    java.io.File destDir)
                             throws java.io.IOException
Copies the source directory to the target directory. The target is created if it does not exist.

Throws:
java.io.IOException

copyFolder

public static final void copyFolder(java.io.File srcDir,
                                    java.io.File destDir,
                                    IFilter<java.lang.String> filter)
                             throws java.io.IOException
Copies the source directory to the target directory.

Throws:
java.io.IOException