com.twitter.common.io
Class FileUtils

java.lang.Object
  extended by com.twitter.common.io.FileUtils

public final class FileUtils
extends Object

Utility methods for working with files and directories.


Nested Class Summary
static class FileUtils.Temporary
          A utility for creating and working with temporary files and directories.
 
Field Summary
static FileUtils.Temporary SYSTEM_TMP
          A temporary based at the default system temporary directory.
 
Method Summary
static File createTempDir()
          Returns a new empty temporary directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_TMP

public static final FileUtils.Temporary SYSTEM_TMP
A temporary based at the default system temporary directory.

Method Detail

createTempDir

public static File createTempDir()
Returns a new empty temporary directory.

Returns:
a file representing the newly created directory.
Throws:
IllegalStateException - if a new temporary directory could not be created