 
   listStorageBuckets basePath, publishStorageBuckets
   fs.watch basePath, (eventType, filename) ->
+    console.log 'i saw something', eventType, filename
     listStorageBuckets basePath, publishStorageBuckets
 
   agent.on '/storage/list', (params, data, callback) ->

      srcpath = path.join basePath, source
      lockFile = path.join basePath, ".#{name}.copy.lock"
      fs.writeFile lockFile, "Copying #{srcpath} to #{targetpath}...", ->
        child_process.exec "cp -rp #{srcpath} #{targetpath}", ->
          fs.unlink lockFile, callback
    else
      fs.mkdirs targetpath, callback

exec          = (require 'child_process').exec
fs            = require 'fs-extra'
path          = require 'path'

