com.atlassian.confluence.util.io
Class ConfluenceFileUtils
java.lang.Object
com.atlassian.confluence.util.io.ConfluenceFileUtils
public class ConfluenceFileUtils
- extends java.lang.Object
Utilities that patch/extend Atlassian Core FileUtils
TODO migrate these out of confluence, into a common module
Method Summary |
static boolean |
isChildOf(java.io.File dir,
java.io.File child)
Determine if a file is a child of another |
static void |
moveDir(java.io.File srcDir,
java.io.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 |
ConfluenceFileUtils
public ConfluenceFileUtils()
moveDir
public static void moveDir(java.io.File srcDir,
java.io.File destDir)
throws java.io.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:
java.io.IOException
isChildOf
public static boolean isChildOf(java.io.File dir,
java.io.File child)
- Determine if a file is a child of another
- Parameters:
dir
- the directory to checkchild
- the child to find
Copyright © 2003-2013 Atlassian. All Rights Reserved.