                   callback null,res
 
     mountSshDrive : (options, callback)->
-      
+
       # mount SSHfs to the user's home directory
-      
+
       # options =
       #   username : String # koding username
       #   remoteuser : String # SSH username

      {username, remoteuser, remotepass, remotehost, sshkey} = options

      options.mountpoint =  path.join config.usersPath, username, config.baseMountDir, remotehost
      
      if sshkey?
        sshopts = "#{config.sshfs.optsWithKey},fsname=#{remotehost}"
        sshcmd  = "#{config.sshfs.sshfscmd} -o #{sshopts} #{remoteuser}@#{remotehost}:/ #{options.mountpoint}"


      # mount FTP to the users home directory

      # options =
      #   username : String # koding username
      #   remoteuser  : String # FTP username
      #   remotepass  : String # FTP password
      #   remotehost  : String # FTP server address
      #
      {username, remoteuser, remotepass, remotehost} = options

      options.mountpoint = path.join config.usersPath, username, config.baseMountDir, remotehost
      ftpfsopts = "#{config.ftpfs.opts},uid=`/usr/bin/id -u #{username}`,gid=`/usr/bin/id -g #{username}`,fsname=#{remotehost},user=#{remoteuser}:#{remotepass}"

      @createMountpoint options,(err,res)=>
        if err
          callback err
