com.cafesoft.core.util
Class FileUtils

java.lang.Object
  |
  +--com.cafesoft.core.util.FileUtils

public class FileUtils
extends Object

Provides utility functions for use with files.

Since:
7/12/02

Constructor Summary
FileUtils()
           
 
Method Summary
static void makeParentDir(File file)
          Creates the parent directory of the specified file.
static void makeParentDir(String filePath)
          Creates the parent directory of the specified file path.
static boolean parentDirExists(File file)
          Checks if the parent directory of the specified file exists on the file system.
static boolean parentDirExists(String filePath)
          Checks if the parent directory of the specified file path exists on the file path system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

parentDirExists

public static boolean parentDirExists(String filePath)
Checks if the parent directory of the specified file path exists on the file path system.

Parameters:
filePath - the path to the file to check
Returns:
true if the parent directory exists, false otherwise

makeParentDir

public static void makeParentDir(String filePath)
Creates the parent directory of the specified file path.

Parameters:
filePath - the path to the file to check

parentDirExists

public static boolean parentDirExists(File file)
Checks if the parent directory of the specified file exists on the file system.

Parameters:
file - the file to check
Returns:
true if the parent directory exists, false otherwise

makeParentDir

public static void makeParentDir(File file)
Creates the parent directory of the specified file.

Parameters:
file - the file to check


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.