Skip to content
Chris Dillon edited this page Sep 18, 2017 · 2 revisions

Notes

  1. FUSE won't work.

Yeah. So if you wanted to monitor Google Drive on Linux using a FUSE program, that's not going to work because inotify events are lost. So, you could have a source directory mounted on a shared drive (as long as it's really mounted by the kernel) and then send the results to Google Drive. Filesystem events are stripped under FUSE and that's a shame but there's likely not going to be a fix for this and this is beyond the scope of Microfile.

But let's say you wanted to do this anyway. Mount up ~/gdrive on Linux using the OCaml Fuse program. Run imaginary on port 9000 (in the README). Mount up your nas on /media/nas. Now files will be converted to jpeg and put in processed.

default_url = "http://localhost:9000"

watch "/media/nas/tmp/dropbox" {
  action "imaginary" {
    options {
      output_directory = "/home/you/gdrive/tmp/processed"
      path = "/convert?type=jpeg"
    }
  }
}

But file renaming (wildcards) isn't implemented yet. So you'll have a .png file that is actually a .jpg. :( Wildcard is coming!

Clone this wiki locally