|
spring-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.util.FileSystemUtils
public abstract class FileSystemUtils
Utility methods for working with the file system.
| Constructor Summary | |
|---|---|
FileSystemUtils()
|
|
| Method Summary | |
|---|---|
static void |
copyRecursively(java.io.File src,
java.io.File dest)
Recursively copy the contents of the src file/directory
to the dest file/directory. |
static boolean |
deleteRecursively(java.io.File root)
Delete the supplied File - for directories,
recursively delete any nested directories or files as well. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemUtils()
| Method Detail |
|---|
public static boolean deleteRecursively(java.io.File root)
File - for directories,
recursively delete any nested directories or files as well.
root - the root File to delete
true if the File was deleted,
otherwise false
public static void copyRecursively(java.io.File src,
java.io.File dest)
throws java.io.IOException
src file/directory
to the dest file/directory.
src - the source directorydest - the destination directory
java.io.IOException - in the case of I/O errors
|
spring-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||