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

## org.apache.ode.utils.fs
Class FileUtils

    java.lang.Object
      org.apache.ode.utils.fs.FileUtils

    public class FileUtils

extends java.lang.Object

Various file system utilities.

Constructor Summary
`FileUtils()`

Method Summary
`static boolean` | `deepDelete(java.io.File file)` Delete a file/directory, recursively.
`static java.util.List<java.io.File>` | `directoryEntriesInPath(java.io.File rootDirectory)` Recursively collect all Files in the given directory and all its subdirectories.
`static java.util.List<java.io.File>` | `directoryEntriesInPath(java.io.File rootDirectory, java.io.FileFilter filter)` Recursively collect all Files in the given directory and all its subdirectories, applying the given FileFilter.
`static java.lang.String` | `encodePath(java.lang.String path)`

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

### deepDelete

    public static boolean deepDelete(java.io.File file)

  Delete a file/directory, recursively.

  Parameters:
    `file` - file/directory to delete
  Returns:
    `true` if successful

### directoryEntriesInPath

    public static java.util.List<java.io.File> directoryEntriesInPath(java.io.File rootDirectory)

  Recursively collect all Files in the given directory and all its subdirectories.

  Parameters:
    `rootDirectory` - the top level directory used for the search
  Returns:
    a List of found Files

### directoryEntriesInPath

    public static java.util.List<java.io.File> directoryEntriesInPath(java.io.File rootDirectory,
                                                                      java.io.FileFilter filter)

  Recursively collect all Files in the given directory and all its subdirectories, applying the given FileFilter.

  Parameters:
    `rootDirectory` - the top level directory used for the search
    `filter` - a FileFilter used for accepting/rejecting individual entries
  Returns:
    a List of found Files

### encodePath

    public static java.lang.String encodePath(java.lang.String path)

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