public final class FileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(File src,
File dest)
Recursively copies the given file or directory to the
given destination.
|
static void |
delete(File f)
Recursively deletes the given file or directory.
|
public static void copy(File src, File dest) throws IOException
src
- source file or directorydest
- destination file or directoryIOException
- if the file or directory cannot be copiedpublic static void delete(File f) throws IOException
f
- file or directoryIOException
- if the file or directory cannot be deletedCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.