java.lang.Object |
↳ |
com.facebook.common.file.FileUtils |
Class Overview
Static operations on Files
Summary
Public Methods |
static
void
|
mkdirs(File directory)
Creates the specified directory, along with all parent paths if necessary
|
static
void
|
rename(File source, File target)
Renames the source file to the target file.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
public
static
void
mkdirs
(File directory)
Creates the specified directory, along with all parent paths if necessary
Parameters
directory |
directory to be created |
public
static
void
rename
(File source, File target)
Renames the source file to the target file. If the target file exists, then we attempt to
delete it. If the delete or the rename operation fails, then we raise an exception
Parameters
source |
the source file |
target |
the new 'name' for the source file |