               })
           when 'content_response'
             content = new Buffer(event.content, 'base64').toString()
-            file_sys.writeFileSync atom.getUserWorkingDirPath() + sep + event.location + sep + event.file, content
+            file_sys.writeFileSync atom.getUserWorkingDirPath() + '/' + event.location + '/' + event.file, content
           when 'remote_delete'
             if event.directory
-              this.deleteDirectoryRecursive atom.getUserWorkingDirPath() + sep + event.location + sep + event.file
+              this.deleteDirectoryRecursive atom.getUserWorkingDirPath() + '/' + event.location + '/' + event.file
             else
-              delPath = atom.getUserWorkingDirPath() + sep + event.location + sep + event.file
+              delPath = atom.getUserWorkingDirPath() + '/' + event.location + '/' + event.file
               if file_sys.existsSync(delPath)
                 file_sys.unlinkSync(delPath)
           when 'remote_move_from'

            console.log('move_to')
          when 'remote_modify'
            if !event.directory
              mkdirp.sync(atom.getUserWorkingDirPath() + sep + event.location)
              file_sys.openSync(atom.getUserWorkingDirPath() + sep + event.location + sep + event.file, 'a')

              @ws.send JSON.stringify({
                action: 'request_content',

        event = JSON.parse(e.data)
        switch event.event
          when 'remote_create'
            console.log('Created: ' + event.location + '/' + event.file)
            if event.directory
              mkdirp.sync(atom.getUserWorkingDirPath() + '/' + event.location + '/' + event.file)
            else
              mkdirp.sync(atom.getUserWorkingDirPath() + '/' + event.location)
              file_sys.openSync(atom.getUserWorkingDirPath() + '/' + event.location + '/' + event.file, 'a')

              @ws.send JSON.stringify({
                action: 'request_content',
