 
     path = FSHelper.plainPath file.path
     
-    [isTarGz, extractFolder] =
-      if tarPattern.test file.name
+    [isTarGz, extractFolder] = switch
+
+      when tarPattern .test file.name
         [yes, path.replace tarPattern, '']
-      else if zipPattern.test file.name
+
+      when zipPattern .test file.name
         [no, path.replace zipPattern, '']
 
     osKite.vmStart()

    @copyOrMove sourceItem, targetItem, 'cp -R', callback

  @move:(sourceItem, targetItem, callback)->
    window.FOLDER = sourceItem
    @copyOrMove sourceItem, targetItem, 'mv', callback

  @compress:(file, type, callback)->

            osKite
          }

          callback null, file  if callback?

    if callback?
      ok.catch (err) ->
        warn err
        callback err

