org.springframework.util
Class FileSystemUtils
java.lang.Object
   org.springframework.util.FileSystemUtils
org.springframework.util.FileSystemUtils
- public abstract class FileSystemUtils 
- extends Object
Utility methods for working with the file system.
- Since:
- 2.5.3
- Author:
- Rob Harrop, Juergen Hoeller
 
| Method Summary | 
| static void | copyRecursively(File src,
                File dest)Recursively copy the contents of the
 srcfile/directory
 to thedestfile/directory. | 
| static boolean | deleteRecursively(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 | 
 
FileSystemUtils
public FileSystemUtils()
deleteRecursively
public static boolean deleteRecursively(File root)
- Delete the supplied File- for directories,
 recursively delete any nested directories or files as well.
 
- 
- Parameters:
- root- the root- Fileto delete
- Returns:
- trueif the- Filewas deleted,
 otherwise- false
 
copyRecursively
public static void copyRecursively(File src,
                                   File dest)
                            throws IOException
- Recursively copy the contents of the srcfile/directory
 to thedestfile/directory.
 
- 
- Parameters:
- src- the source directory
- dest- the destination directory
- Throws:
- IOException- in the case of I/O errors
 
Copyright © 2002-2008 The Spring Framework.