Android Utililty Methods Folder Copy

List of utility methods to do Folder Copy

Description

The list of methods to do Folder Copy are organized into topic(s).

Method

voidcopyFolder(String sourceDir, String targetDir)
copy Folder
(new File(targetDir)).mkdirs();
File[] file = (new File(sourceDir)).listFiles();
for (int i = 0; i < file.length; i++) {
    if (file[i].isFile()) {
        File sourceFile = file[i];
        File targetFile = new File(
                new File(targetDir).getAbsolutePath()
                        + File.separator + file[i].getName());
...