public class FtpUtils extends Object
| Constructor and Description |
|---|
FtpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanDirectory(org.apache.commons.net.ftp.FTPClient ftpClient,
String dir)
Clean a directory by delete all its sub files and
sub directories recursively.
|
static void |
removeDirectory(org.apache.commons.net.ftp.FTPClient ftpClient,
String parentDir,
String currentDir,
boolean removeOnlyContent)
Removes a non-empty directory by delete all its sub files and
sub directories recursively.
|
public static void cleanDirectory(org.apache.commons.net.ftp.FTPClient ftpClient,
String dir)
throws IOException
IOExceptionpublic static void removeDirectory(org.apache.commons.net.ftp.FTPClient ftpClient,
String parentDir,
String currentDir,
boolean removeOnlyContent)
throws IOException
IOExceptionCopyright © 2023. All rights reserved.