fr.cnes.sitools.util
Class FileCopyUtils

java.lang.Object
  extended by fr.cnes.sitools.util.FileCopyUtils

public final class FileCopyUtils
extends java.lang.Object

Utility class to copy a file or a folder and its sub-folder

Author:
m.gond (AKKA Technologies)

Method Summary
static void copyAFile(java.lang.String entree, java.lang.String sortie)
          Copy a file at the source URL to the destination URL.
static void copyAFolder(java.io.File file, java.lang.String destUrl)
          Copy the content of a folder and its sub-folders.
static void copyAFolder(java.io.File sourceFile, java.lang.String destUrl, boolean excludeRoot)
          Copy all folder in a directory excluding the root directory
static void copyAFolder(java.lang.String sourceUrl, java.lang.String destUrl)
          Copy a folder
static void copyAFolderExclude(java.io.File file, java.lang.String destUrl, java.lang.String excludeExt)
          Copy the content of a folder and its sub-folders.
static void copyAFolderExclude(java.lang.String sourceUrl, java.lang.String destUrl, java.lang.String exclude)
          Copy a folder excluding some files
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyAFolder

public static void copyAFolder(java.lang.String sourceUrl,
                               java.lang.String destUrl)
Copy a folder

Parameters:
sourceUrl - source path
destUrl - destination path

copyAFolderExclude

public static void copyAFolderExclude(java.lang.String sourceUrl,
                                      java.lang.String destUrl,
                                      java.lang.String exclude)
Copy a folder excluding some files

Parameters:
sourceUrl - source path
destUrl - destination path
exclude - excluding string

copyAFolderExclude

public static void copyAFolderExclude(java.io.File file,
                                      java.lang.String destUrl,
                                      java.lang.String excludeExt)
Copy the content of a folder and its sub-folders.

Parameters:
file - the folder to copy
destUrl - the destination path
excludeExt - exclude a folder

copyAFolder

public static void copyAFolder(java.io.File sourceFile,
                               java.lang.String destUrl,
                               boolean excludeRoot)
Copy all folder in a directory excluding the root directory

Parameters:
sourceFile - source file
destUrl - destination url
excludeRoot - excluding boolean, true to exclude root

copyAFolder

public static void copyAFolder(java.io.File file,
                               java.lang.String destUrl)
Copy the content of a folder and its sub-folders.

Parameters:
file - the folder to copy
destUrl - the destination URL

copyAFile

public static void copyAFile(java.lang.String entree,
                             java.lang.String sortie)
Copy a file at the source URL to the destination URL.

Parameters:
entree - the source file URL
sortie - the destination file URL


Copyright © 2010-2013 CNES. All Rights Reserved.