Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2006, 06:17 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem picking up files after ftp transfer

I have a Java file handler sitting on an ftp machine, which picks up files after they have been uploaded by a remote user.

There are 250 users, each with their own 'home' directory on the server.

Traditionally, my code has monitored the last modified date on all 250 folders, as ftp transfers have always updated the LMD when the transfer is complete.

However, I have moved this code to a new server, and on this environment, the LMD gets updated at the beginning of the ftp transfer, so my code is picking up files before the transfer is complete, resulting in file truncation.

Servers in question are all Red Hat Linux ES, the old server was version 2, the new server is version 4.

Does anybody now how to either:
a: Tell the OS to modify the LMD after the transfer is complete
or
b: Use Java to determine if the file is finished being built.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Secured FTP File Transfer syed_sooraj Classic ASP Basics 1 December 7th, 2007 06:29 PM
DTS FTP Task file disappears after transfer tdawg69311 SQL Server DTS 0 April 28th, 2006 03:38 PM
Transfer Files via FTP vb_developer C# 2 September 8th, 2004 12:36 AM
Transfer files via FTP by using ASP.NET vb_developer Classic ASP Basics 1 September 6th, 2004 03:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.