This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Secure FTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Secure FTP" Watch "Secure FTP" New topic
Author

Secure FTP

Avinash Gosi
Greenhorn

Joined: Jul 16, 2008
Posts: 8
Hi all,
I need to get the latest files which are there in remote machine. Here I will not be knowing any information about the new files. If possible i need to make copy of only new files in new folder.
If I synchronize it will download to the local folder but here I will not get to know which files are downloaded. In my program I need to work on those new files whenever I download files from remote. Is there any way to find the newly downloaded files. Or any java API to meet this requirement. Please give some API for this.

Thanks
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Avinash: In my program I need to work on those new files

Have two directories. One for processed files and one for new files(your download location)
Whenever your program processes a file, it moves that file to the "processed" directory. So, you will always have unprocessed(new) files in the download directory.

(Moving this topic to Java In General(Intermediate))


apigee, a better way to API!
Avinash Gosi
Greenhorn

Joined: Jul 16, 2008
Posts: 8
If I download files in new folder it will download all the from remote machine. Here it is difficult to find which are new files. If I compare this new folder with processed folder it will be heavy work, because if there are thousands of files it takes more time.

Thanks,
 
 
subject: Secure FTP
 
Similar Threads
Reading file from remote server using SFTP connection
Deploying SCWCD Study Companion Download bundle
ZIP File Download
J2me Polish
Need Help for implementing save as dialog box for downloading a folder not a file