Back to Fresco

FileUtils

docs/javadoc/reference/com/facebook/common/file/FileUtils.html

3.6.012.5 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Exceptions

Packages | Classes

Summary: Nested Classes | Ctors | Methods | Inherited Methods | [Expand All]

public class

FileUtils

extends Object

| java.lang.Object | | ↳ | com.facebook.common.file.FileUtils |

Class Overview

Static operations on Files

Summary

Nested Classes
class
class
class
class
Public Constructors
Public Methods
static void
Creates the specified directory, along with all parent paths if necessary
static void
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 FileUtils()

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 |

Throws

| FileUtils.CreateDirectoryException | |

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 |

Throws

| IOException | | | FileUtils.RenameException | |

+Generated by Doclava. +