List of usage examples for org.apache.commons.io FileUtils copyDirectory
public static void copyDirectory(File srcDir, File destDir) throws IOException
From source file:de.maklerpoint.office.OfflineMode.SynchronizeFilesystem.java
public static void synchronizeFilesystem() { try {// ww w. jav a 2s .c om FileUtils.copyDirectory(new File(Filesystem.getRootPath()), new File("includes" + File.separatorChar + "localstorage" + File.separatorChar + "filesystem")); } catch (IOException e) { Log.logger.fatal("Fehler: Konnte Dateisystem nicht synchronisieren", e); ShowException.showException("Konnte das Dateisystem nicht synchronisieren.", ExceptionDialogGui.LEVEL_WARNING, e, "Schwerwiegend: Konnte Dateisystem nicht synchronisieren"); } }
From source file:Artemis_Expanded_Skyboxes.System01.java
public static void system01() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {// ww w . jav a 2 s. com FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System02.java
public static void system02() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {//from w ww .j ava2 s . c o m FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System03.java
public static void system03() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {//from ww w.j a v a 2 s . co m FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System04.java
public static void system04() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {//from w ww . j a va 2 s .co m FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System05.java
public static void system05() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/* w w w. ja v a 2 s. co m*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System06.java
public static void system06() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {// www. j ava 2 s.c o m FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System07.java
public static void system07() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/*w w w. j ava2 s .c om*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System08.java
public static void system08() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/*www . j a v a 2s. c o m*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System09.java
public static void system09() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {//from w w w . j a v a 2s . c om FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }