/**
* Deletes files and directories recursively. WARNING!!! Follows symlinks!!!
+ *
+ * @param file
+ * directory to delete with entire contents.
+ *
+ * @throws IOException
+ * if filesystem error happens
*/
public static void deleteRecursively(final File file) throws IOException {
if (file.isDirectory()) {
* then leaves file as-is. If content differs, then overrides file with the
* new content.
*
+ * @param file
+ * file to potentially overwrite
+ * @param newContent
+ * new content
* @return <code>true</code> if file was overwritten.
+ *
+ * @throws FileNotFoundException
+ * if file is not found.
+ * @throws IOException
+ * if error happens during file IO.
*/
public static boolean overwriteFileIfContentDiffers(final File file,
final byte[] newContent) throws FileNotFoundException, IOException {