[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Deleting the local file after ftp_put
Hello,
I have downloaded and installed FTPAPI 2.3 and it works. Thanks a lot,
Scott !
Based on the TESTMIROUT sample program, I would like to delete the
local file (IFS) after transfering it to my Alfresco CMS.
I guess an unlink() should go somewhere here and additional
instructions in some other places:
..................
* Otherwise, assume it's a file, and transfer it.
c else
c if ftp_put(ftp: wwFile: LocalFile) [<]= 0
c unlink(wwFile)
c else
c callp diagmsg(FTP_errorMsg(ftp))
c endif
c endif &! nbsp;
c enddo
c callp closedir(dh)
c return 0
P E !
But I'm not a programmer and I couldn't get it to work...
Thanks in advance for your help.
Ernest
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------