Package sunstone.azure.impl
Class FtpUtils
- java.lang.Object
-
- sunstone.azure.impl.FtpUtils
-
public class FtpUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FtpUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanDirectory(org.apache.commons.net.ftp.FTPClient ftpClient, String dir)Clean a directory by delete all its sub files and sub directories recursively.static voidremoveDirectory(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.
-
-
-
Method Detail
-
cleanDirectory
public static void cleanDirectory(org.apache.commons.net.ftp.FTPClient ftpClient, String dir) throws IOExceptionClean a directory by delete all its sub files and sub directories recursively.- Throws:
IOException
-
removeDirectory
public static void removeDirectory(org.apache.commons.net.ftp.FTPClient ftpClient, String parentDir, String currentDir, boolean removeOnlyContent) throws IOExceptionRemoves a non-empty directory by delete all its sub files and sub directories recursively. And finally remove the directory if requested.- Throws:
IOException
-
-