conduit icon indicating copy to clipboard operation
conduit copied to clipboard

Connector: directory connector [Source/Destination]

Open alarbada opened this issue 1 year ago • 4 comments

Resource name

directory

Resource link

https://en.wikipedia.org/wiki/Directory_(computing)

Connector type

Source

Expected connector behavior

We already have the file connector, so this is the logical next step. Just point to a directory and let conduit do its job.

Usecases:

  • Backups mainly
  • People that use something like obsidian, and want to backup all files into S3
  • Move files all files from an S3 bucket into a folder.

alarbada avatar Dec 06 '24 14:12 alarbada

I was looking into golang recursive directory watchers recently, so here's some info that might be helpful for this

fsnotify is probably the most popular golang filewatchers, but doesnt do recursive watching. https://github.com/fsnotify/fsnotify/issues/18

frankenphp (a fantastic new golang-based php webserver, based in caddy) added such capabilities recently. They started with a PR from a contributor, then rolled their own golang watcher, then ended up using e-dant/watcher (which is also mentioned in the fsnotify thread above. Here's where they discovered e-dant and continued the discussion about and implementation of it. the e-dant dev seems to be quite happy to help others integrate it - you can see him communicating in both the fsnotify and frankenphp threads

Hope this helps

nickchomey avatar Dec 06 '24 18:12 nickchomey

Oh @nickchomey hello! I was thinking about fsnotify aswell, sad that doesn't include adding new files. I remember reading somewhere that air also had good filewatching capabilities.

I'd like to do this connector soon at some point, looks very fun to program!

alarbada avatar Dec 06 '24 20:12 alarbada

air uses fsnotify, so one of the other options would probably be better.

nickchomey avatar Dec 06 '24 20:12 nickchomey

FYI I've added this (and other connector requests) to our internal connectors' project where we prioritize all connector requests. We'll let you know once we figure when we're going to work on this.

hariso avatar Dec 11 '24 12:12 hariso