   compressedBz2 : "afile.txt.bz2"
     
   setup: (cb) ->
-      
+    @createTemp()
     @hook = new main.Gzbz2(name: 'gzbz2')
     @hook.onAny (data) =>
       console.log "ANY #{@hook.event} EatMe: #{@eatMe} HasCurrentCb: #{@currentCb != null}"

    "#{__dirname}/../tmp/#{fileName}"
  
  cleanTmpFiles: (fileNames) ->
    for file in fileNames
      try
        fs.unlinkSync @tmpPath(file)

    @hook.start()
    cb null,@hook
    
  createTemp: ->
    try
      fs.mkdirSync "#{__dirname}/../tmp/",0755
    catch ignore
      console.log "Failed to create tmp folder #{ignore}"
    
  fixturePath: (fileName) ->
    "#{__dirname}/fixtures/#{fileName}"

