Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in .NET FTP by (220 points)
hi,

How to delete folder including files and folders without exeptions?
i am trying to delete this methods ;
ftpRemoteFileList1.PromptOnDelete=false;
exFTPConnection1.DeleteDirectory(path);
exFTPConnection1.DeleteMultipleFiles();

but i have exeptions this folder does not empty

3 Answers

0 votes
by (162k points)
exFTPConnection1.DeleteDirectoryTree(path);
0 votes
by (220 points)
i am trying to this ;


ftp.Web_Service.Service OrderService = new ftp.Web_Service.Service();
OrderService.OrderCancel(DeleteOrderNumber);

exFTPConnection1.ChangeWorkingDirectoryUp();

lblDrurum.ForeColor = System.Drawing.Color.Red;
lblDrurum.Text = "Order is canceled";

ftpRemoteFileList1.PromptOnDelete=false;

exFTPConnection1.DeleteDirectoryTree(DeleteOrderNumber.ToString().Trim());


DeleteOrderNumber is created directory name and i am enter this folder and uploading files but when order is canceled i want to delete created directory.

when i use this
"exFTPConnection1.DeleteDirectoryTree(DeleteOrderNumber.ToString().Trim());"
i have an exception "Synchronize operation cancelled."
0 votes
by (162k points)
please email the log file (at ALL level) to support at enterprisedt dot com

Categories

...