How know when ftp ends to transfer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm making a program to take a files on my FTP server, when my program see new file move this file to other site depends certains things, but when my program move the transfer with FTP, the transfer is procesing and the file is not complete.

How I can detect if the file is free, the FTP put the correct name from begin and the size. I'm working with java

Thanks

MA
(e-mail address removed)
 
I’m making a program to take a files on my FTP server, when my
program see new file move this file to other site depends certains
things, but when my program move the transfer with FTP, the transfer
is procesing and the file is not complete.
How I can detect if the file is free, the FTP put the correct name
from begin and the size. I’m working with java.
Thanks,

MAC
(e-mail address removed)

You can always create another file (call it done.txt), after the
transfer is complete. As soon as your script sees "done.txt", it
knows the transfer is complete. Then your script grabs the ftp’ed
file and then deletes "done.txt" to get ready for next transfer.
 
program see new file move this file to other site depends certains
things, but when my program move the transfer with FTP, the transfer
is procesing and the file is not complete.
from begin and the size. I=3Fm working with java.

You can always create another file (call it done.txt), after the
transfer is complete. As soon as your script sees "done.txt", it
knows the transfer is complete. Then your script grabs the ftp=3Fed
file and then deletes "done.txt" to get ready for next transfer.

Or, if you can't modify the behavior of the client, you could scan the
log.
 
Back
Top