             osKite
           }
 
-          window.FILE = file
-
           callback null, file  if callback?
 
     if callback?
-      ok
-      .catch (err) ->
+      ok.catch (err) ->
         warn err
         callback err
 


      osKite.fsEnsureNonexistentPath(path: targetPath)
      .then (actualPath) ->
        command = "#{ commandPrefix } #{ escapeFilePath sourceItem.path } #{ escapeFilePath actualPath }"

        osKite.exec(command)


    path = FSHelper.plainPath file.path
    
    [isTarGz, extractFolder] = switch

      when tarPattern .test file.name
        [yes, path.replace tarPattern, '']

      when zipPattern .test file.name
        [no, path.replace zipPattern, '']

    osKite.vmStart()
