How know when ftp ends to transfer

G

Guest

Guest
Archived from groups: microsoft.public.win2000.file_system (More info?)

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
migelanca@yahoo.com
 

steve

Distinguished
Sep 10, 2003
2,366
0
19,780
Archived from groups: microsoft.public.win2000.file_system (More info?)

> 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
> migelanca@yahoo.com

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.

--
http://www.WindowsForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.WindowsForumz.com/File-System-ftp-ends-transfer-ftopict538543.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.WindowsForumz.com/eform.php?p=2414827
 

Brad

Distinguished
Dec 31, 2007
497
0
18,780
Archived from groups: microsoft.public.win2000.file_system (More info?)

In article <3b48ca6670a05f7b693bcb1bdf5d855b@news.teranews.com>,
UseLinkToEmail@WindowsForumz.com said...
> > I=3Fm 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=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.