Not able to delete file after download using -delsrc

Core FTP client questions and answers
Locked
mike_upa
Posts: 2
Joined: Tue Dec 21, 2010 3:03 pm

Not able to delete file after download using -delsrc

Post by mike_upa »

CoreFTP Pro (version 2.1): I am using a command line to download files from a remote site.

coreFTP.exe -s -O -d Outgoing/* -site remote -p in -delsrc -log recv.log.txt


After the download, the files still remain at the remote site. The log file indicates:

RETR Outgoing/Test 12-20-10.txt
Test 12-20-10.txt - 4 bytes transferred
DELE Test 12-20-10.txt
permission denied...
DELE Outgoing/Test 12-20-10.txt
permission denied...
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 4

However, if I go into the graphical interface, I am able to delete the remote with no problem. Also, if I set the 'Delete after transfer' option on the site and I download the file in the graphical interface, the remote file is automatically deleted.

It just does not work with the command line.

Any suggestions?
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

the server doesn't like the format.

Use the full path for your parameters.

corecmd.exe -s -O -site remote -d /EntirePath/Outgoing/* -p c:\localpath\in\ -delsrc -log recv.log.txt
mike_upa
Posts: 2
Joined: Tue Dec 21, 2010 3:03 pm

Post by mike_upa »

That worked great!

Thank you!
Locked