       publishPath = FSHelper.escapeFilePath "/opt/Apps/#{nickname}/#{manifest.name}/#{manifest.version}"
       userAppPath = if /~\//.test manifest.path
         manifest.path.replace("~/", "/Users/#{nickname}/")
-      else 
+      else
         "#{manifest.path}/"
       options     =
         toDo          : "publishApp"

    {profile} = KD.whoami()
    path = if /^~/.test app.path then "/Users/#{profile.nickname}#{app.path.substr(1)}"
    else app.path
 
    path += "/" unless path[path.length-1] is "/"
    
    return path

  getManifestFromPath = (path, callback = noop)->

    folderName = (arr = path.split("/"))[arr.length-1]
    app        = null
    
    for own name, manifest of KodingAppsController.manifests
      do ->
        app = manifest if manifest.path.search(folderName) > -1
          
    return app

  # #

      kallback @constructor.manifests[name]

  installApp:(app, callback)->

    @fetchApps (err, manifests = {})=>
      if err
        warn err
