• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Secure FTP

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic