0

I'm looking for high level solutions for a client to be able to drop files into an FTP folder. I imagine I would check periodically if there are any files in directory and then perform the rest of processing.

What are some good solutions for uploading and periodically checking FTP folder Using AWS, .net C#

ShaneKm
  • 20,823
  • 43
  • 167
  • 296

3 Answers3

2

We have used the FileSystemWatcher Class. The Class Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.

There are a few catcha's:

  • The new file event can fire before the file is finished writing to the folder
  • Multiple events can fire when the watched folder changes.

The code will have to run as a Service on a machine that has access to the folder.

Check out this item Using FileSystemWatcher to monitor a directory

fremis
  • 584
  • 4
  • 4
0

Write a windows service that uploads however often you want it too.

forwardi
  • 26
  • 4
0

You could use something like Cloud Watch Events that can be triggered every x minutes which could notify a SNS topic that a HTTP endpoint is subscribed to. The receiving controller could then do whatever checks you need and process any new files.