| View previous topic :: View next topic |
| Author |
Message |
Umesh.chape
Joined: 07 May 2008 Posts: 2
|
Posted: Wed May 07, 2008 5:23 am Post subject: Remote Directory not Deleted by using DeleteDir method |
|
|
Hi friends,
I download Activex software and try to use methods from class file (Interop.ASOCKETLib.dll).
It works fine foe methods like connect and Delete file.
But when i try to use Deletedir for delete server directory form ftp site.It is unable to delete the direcotry.
I used following code to delete directory.
ASOCKETLib.FtpServer FTPserver = new ASOCKETLib.FtpServer();
FTPserver.Connect(host, user, password);
FTPserver.DeleteDir(item.remotePath);
Is any one help me ? |
|
| Back to top |
|
 |
Leon
Joined: 11 Jul 2007 Posts: 405
|
Posted: Wed May 07, 2008 1:19 pm Post subject: |
|
|
Hi,
Can you send me a logfile ?
Most probably it is because you do not have enough rights to delete this dir, or the directory is not empty.
Leon |
|
| Back to top |
|
 |
Umesh.chape
Joined: 07 May 2008 Posts: 2
|
Posted: Thu May 08, 2008 3:54 am Post subject: Yes, the directory is not empty |
|
|
| Yes, the directory is not empty. How can i do for directory with files |
|
| Back to top |
|
 |
Leon
Joined: 11 Jul 2007 Posts: 405
|
Posted: Thu May 08, 2008 7:04 am Post subject: |
|
|
Hi,
You have to delete all files using DeleteFile() Method first,
Leon |
|
| Back to top |
|
 |
|