File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Secure FTP" Watch "Secure FTP" New topic

Secure FTP

Avinash Gosi

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.

Nitesh Kant

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

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.

I agree. Here's the link:
subject: Secure FTP
It's not a secret anymore!