+path = require 'path'
+fs = require 'fs'
 async = require 'async'
-path = require 'path'
 mv = require 'mv'
 
 RedisObject = require './redis_object'


    filemap = []
    filemap.push @files_prefix()

    async.map files, @setup_file, (err, reply) =>
      for f in reply
        filemap.push f.name

      unless reply.length == 0
        reply.unshift @files_prefix()
        @redis.hdel.apply(@redis, reply)
      @delete_files (err, reply) =>
        fn(null)

  ###*
   * Sets up the file in the proper directory.
