Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.basilv.core
Class FileUtilities

    java.lang.Object
      com.basilv.core.FileUtilities

    public class FileUtilities

extends Object

Contains utility methods for working with Files.

Constructor Summary
`FileUtilities()`

Method Summary
`static void` | `deleteFile(File file)`
`static void` | `deleteRecursively(File file)` Delete the specified directory and all its contents.
`static String` | `getCanonicalPath(File file)` Return the canonical path, or the absolute path if an error occurs.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileUtilities

    public FileUtilities()

Method Detail

### getCanonicalPath

    public static String getCanonicalPath(File file)

  Return the canonical path, or the absolute path if an error occurs.

  Parameters:
    `file` - Cannot be null.
  Returns:
    the full path of the file.

### deleteRecursively

    public static void deleteRecursively(File file)

  Delete the specified directory and all its contents.

  Parameters:
    `file` - Cannot be null. If a file is specified, it is deleted.

### deleteFile

    public static void deleteFile(File file)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

EnvGen available from www.basilv.com/psd/software Copyright © 2007 Basil Vandegriend. All Rights Reserved.