heav_yduty 0 Newbie Poster

Hi!
I made a FTP client. And I want to add a handler to remove directory from FTP server
I got one, which removes files, but I don't know how to remove directory
I got this to remove files

void CInetFTPDlg::OnBremove()
{
UpdateData(true);
if (m_sFile != "")
{
m_fcConnection->Remove(m_sFile);
UpdateData(false);
LoadListOfFiles();
}
}

and use

m_fcConnection->RemoveDirectory(m_sFile);

to remove directory, but nothig works, I know that directory should be empty.
Maybe somebody can help&
thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.