org.objectweb.telosys.util
Class DirUtil

java.lang.Object
  extended byorg.objectweb.telosys.util.DirUtil

public final class DirUtil
extends java.lang.Object

Utility class for DIRECTORY operations ( set of static methods )


Method Summary
static boolean createDir(java.lang.String sDir)
          Creates the given directory, including any necessary but nonexistent parent directories
static boolean createFileDir(java.lang.String sFile)
          Creates the file's directory if it doesn't exist
static boolean exists(java.lang.String sDir)
          Checks the existence of a directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

exists

public static boolean exists(java.lang.String sDir)
Checks the existence of a directory

Parameters:
sDir -
Returns:
true if the given directory exists and is realy a directory (not a file)

createDir

public static boolean createDir(java.lang.String sDir)
Creates the given directory, including any necessary but nonexistent parent directories

Parameters:
sDir -
Returns:
true if the directory was created

createFileDir

public static boolean createFileDir(java.lang.String sFile)
Creates the file's directory if it doesn't exist

Parameters:
sFile -
Returns:
true if the directory was created