This project is read-only.

Internal error renaming the file

Dec 22, 2014 at 8:06 AM
Edited Dec 22, 2014 at 8:08 AM
Hi, I have a problem when try to cut the file from one FTP directory to another.

Description, I have an infinity 'while", with "Thread.Sleep(60000)" (1 minute).
When loop start, I call "Connect" method, then "GetListing" (only files, not folders). Then I foreach files, download it to local machine (OpenRead, FtpDataType.Binary).

After copying, I call "Rename", to cut file from one FTP folder to another, but in this moment I catch "Internal error renaming the file".

But if I restart app, all work successfully (file move to another FTP directory, and I call "Disconnect" method).

Please help me)