code: function enable(path) {
          var result = new $.Deferred(),
              file = FileSystem.getFileForPath(path + "/.disabled");
  
          function afterEnable() {
              ExtensionLoader.loadExtension(FileUtils.getBaseName(path), { baseUrl: path }, "main")
                  .done(result.resolve)
                  .fail(result.reject);
          }
  
          var defaultExtensionPath = ExtensionLoader.getDefaultExtensionPath();
          if (file.fullPath.indexOf(defaultExtensionPath) === 0) {
              toggleDefaultExtension(path, true);
              afterEnable();
              return result.promise();
          }
  
          file.unlink(function (err) {
              if (err) {
                  return result.reject(err);
              }
              afterEnable();
          });
          return result.promise();
      }
docs: Enables the extension at the given path.
  
  @param {string} path The absolute path to the extension to enable.
  @return {$.Promise} A promise that's resolved when the extenion is enable, or
  rejected if there was an error.