               console.log('Created: ' + this.formatFilePath(event.location) + @sep + event.file)
               if event.directory
                 if @windows
-                  exec('mkdir ' + atom.getUserWorkingDirPath() + @sep + this.formatFilePath(event.location) + @sep + event.file)
+                  execSync('mkdir ' + atom.getUserWorkingDirPath() + @sep + this.formatFilePath(event.location) + @sep + event.file)
                 else
                   mkdirp.sync(atom.getUserWorkingDirPath() + @sep + event.location + @sep + event.file)
               else
                 #if @windows
-                #  exec('mkdir ' + atom.getUserWorkingDirPath() + @sep + this.formatFilePath(event.location))
+                #  execSync('mkdir ' + atom.getUserWorkingDirPath() + @sep + this.formatFilePath(event.location))
                 #else
                 mkdirp.sync(atom.getUserWorkingDirPath() + @sep + event.location)
 

{$, View} = require 'atom-space-pen-views'
file_sys  = require 'fs'
mkdirp    = require 'mkdirp'
exec      = require('child_process').execSync
spawn     = require('child_process').spawnSync
crossSpawn = require('cross-spawn').spawn
rmdir     = require('rimraf')

module.exports =
class TerminalView extends View

            when 'remote_modify'
              if !event.directory
                if @windows
                  execSync('mkdir ' + atom.getUserWorkingDirPath() + @sep + this.formatFilePath(event.location))
                else
                  mkdirp.sync(atom.getUserWorkingDirPath() + @sep + event.location)

