public class DiskChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DiskChecker.DiskErrorException |
static class |
DiskChecker.DiskOutOfSpaceException |
Constructor and Description |
---|
DiskChecker() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDir(File dir) |
static boolean |
mkdirsWithExistsCheck(File dir)
The semantics of mkdirsWithExistsCheck method is different from the mkdirs
method provided in the Sun's java.io.File class in the following way:
While creating the non-existent parent directories, this method checks for
the existence of those directories if the mkdir fails at any point (since
that directory might have just been created by some other process).
|
public static boolean mkdirsWithExistsCheck(File dir)
dir
- public static void checkDir(File dir) throws DiskChecker.DiskErrorException
DiskChecker.DiskErrorException
Copyright © 2010 The Apache Software Foundation