Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Secure FTP

 
Avinash Gosi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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))
 
Avinash Gosi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic