+readline = require "readline"
+rl = readline.createInterface
+  input: process.stdin
+  output: process.stdout
+
 {createReadStream} = require "fs"
 {join} = require "path"
 
-{async} = require "fairmont"
+{async, cat} = require "fairmont"
 mime = require "mime"
 
 config = require "../../configuration"


  async ({dlist, ulist}) ->
    console.log "Syncing S3 bucket."
    # Delete Files
    try
      for file in dlist

          Key: file

        yield s3.deleteObject params
        printProgress()

    catch e
      console.error "Failed to delete object.", e
      throw new Error()
