 
     for cName, cFile of clientFiles
       if !(serverFiles[cName]?)
-        filePath = localPath + "\\" + cName
+        filePath = localPath + path.sep + cName
         if cFile.type is "directory"
           @deleteFolderRecursive( cFile, filePath )
         else

      files = fs.readdirSync curPath
      arr = {}
      for file in files
        filePath = curPath + "\\" + file
        stat = fs.statSync filePath
        if stat.isDirectory()
          arr[file] = {name: file, type: "directory",

    console.log localPath
    diffFiles = []
    fs = require 'fs'
    path = require 'path'

    for sName, sFile of serverFiles
      filePath = localPath + path.sep + sName
      if sFile.type is "directory"
        @createFileIfNotExists( {path: filePath}, ->
          clientFiles[sName] = {name: sName, content: {}, type: "directory"}
