RemObjects.InternetPack.Ftp.VirtualFtp.DiscFolder.DeleteFolder C# (CSharp) Method

DeleteFolder() public method

public DeleteFolder ( String folder, System.Boolean recursive, VirtualFtpSession session ) : void
folder String
recursive System.Boolean
session VirtualFtpSession
return void
		public override void DeleteFolder(String folder, Boolean recursive, VirtualFtpSession session)
		{
			if (!AllowDeleteItems(session))
				throw new FtpException(550, String.Format("Cannot delete folder \"{0}\", permission to delete from this folder denied.", folder));

			if (!HasSubfolder(folder))
				throw new FtpException(550, String.Format("A folder named \"{0}\" does not exist.", folder));

			Directory.Delete(Path.Combine(LocalPath, folder), recursive);

		}