Skip to content
Snippets Groups Projects
Commit 49ec9880 authored by tpylak's avatar tpylak
Browse files

LMS-791 minor: remove method from common, it exists in apache io library

SVN: 10347
parent 6683c14d
No related branches found
No related tags found
No related merge requests found
...@@ -130,36 +130,6 @@ public final class FileUtilities ...@@ -130,36 +130,6 @@ public final class FileUtilities
} }
} }
} }
/**
* Copies the source directory recursively to the destination directory
*
* @param sourcePath source which will be copied
* @param destinationPath where the copy will be made
*/
public static void copyDirectory(File sourcePath, File destinationPath)
{
if (sourcePath.isDirectory())
{
if (!destinationPath.exists())
{
destinationPath.mkdir();
}
String files[] = sourcePath.list();
for (int i = 0; i < files.length; i++)
{
copyDirectory(new File(sourcePath, files[i]), new File(destinationPath, files[i]));
}
} else
{
if (!sourcePath.exists())
{
throw new EnvironmentFailureException("File or directory does not exist: "
+ sourcePath);
}
copyFileTo(sourcePath, destinationPath, false);
}
}
/** /**
* Loads a text file to a {@link String}. * Loads a text file to a {@link String}.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment