Bug 1888436 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Here's the method signature I'm proposing:

```js
  /**
   * Restore a backup to some profile directory. This will reject and fail if
   * the profile is already in use.
   *
   * @param {object} manifestEntry
   *   The deserialized object that was generated and returned by `backup` when this
   *   particular resource was backed up.
   * @param {string} stagingPath
   *   The path to the folder on the file system where all files within the
   *   file archive were decompressed.
   * @param {string} profilePath
   *   The profile path to write the restored files to.
   * @returns {Promise<undefined>}
   */
  async recover(manifestEntry, stagingPath, profilePath) {}
```
Here's the method signature I'm proposing:

```js
  /**
   * Restore a backup to some profile directory. This will reject and fail if
   * the profile is already in use.
   *
   * @param {object} manifestEntry
   *   The deserialized object that was generated and returned by `backup` when this
   *   particular resource was backed up.
   * @param {string} recoveryPath
   *   The path to the folder on the file system where all files within the
   *   backup file archive were decompressed.
   * @param {string} profilePath
   *   The profile path to write the restored files to.
   * @returns {Promise<undefined>}
   */
  async recover(manifestEntry, recoveryPath, profilePath) {}
```

Back to Bug 1888436 Comment 1