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

          @logger.error "Error setting up files for `#{target_loc}`."
        fn(err, { name: file.name, md5: data })

  # ###*
  #  * Deletes the directories for the application.
  #  * @param {Object} (tag) The tag to create directories for
  #  * @param {Function} (fn) The callback function
  # ###
  # delete_files: (tag, fn) =>
  #   dirloc = [@user, @application, @dtype, name].join('/')
  #   fs.rmdir [@config.get('repository'), dirloc].join('/'), (err) =>
  #     if err
  #       @logger.error "Error removing directories for `#{dirloc}`."
  #     fn(null, true)

module.exports = Files

      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.
