• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Monitoring Local Directory from Server

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an application in which a server does some processing every time a new file is added to a directory (additionally, it does some processing when the directory is first selected but as a worst case solution I could serialize the file data and send it to the server when the directory was first selected). This is a client server application and I want the user to be able to specify what directory to be monitored. I'm assuming though I must do something with permission settings to allow the server to see into the client's directory, is that correct? Is there some way around this?

Thanks.
Jeff
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
where does the client select a directory ? Webbrowser ? GUI Tool, Command line ?

There is no way a Server (which is just a remote computer) can look into a clients File System unless there is either some sharing software/protocoll installed (e.g. Windows File Sharing) or there is an active program on the client (e.g. an Application, an Applet with proper permissions) which checks the directory and sends events to the server (e.g. by calling an HTTP Service)

Pascal
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
found this file monitor to monitor a dir on local machine. May be you can enhnce it further for a remote machine.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic