com.atlassian.confluence.util.io
Class ConfluenceFileUtils

java.lang.Object
  extended by com.atlassian.confluence.util.io.ConfluenceFileUtils

public class ConfluenceFileUtils
extends Object

Utilities that patch/extend Atlassian Core FileUtils TODO migrate these out of confluence, into a common module


Constructor Summary
ConfluenceFileUtils()
           
 
Method Summary
static void moveDir(File srcDir, File destDir)
          move a directory with all it's children into another directory if destination directory already exists, it will be deleted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceFileUtils

public ConfluenceFileUtils()
Method Detail

moveDir

public static void moveDir(File srcDir,
                           File destDir)
                    throws IOException
move a directory with all it's children into another directory if destination directory already exists, it will be deleted. Retries a move once, after a short delay, if the move cannot complete for some reason. e.g. rename c:/foo/bar to c:/fooz/bar

Throws:
IOException


Copyright © 2003-2011 Atlassian. All Rights Reserved.