Closed Bug 1663707 Opened 4 years ago Closed 3 years ago

Support appending in IOUtils.writeAtomic

Categories

(Toolkit Graveyard :: OS.File, task, P3)

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: barret, Assigned: barret)

References

Details

Attachments

(1 file)

IOUtils.writeAtomic does not expose a way to append to a file instead of just overwriting it.

No longer blocks: 1231711
Blocks: 1231711

IOUtils.write{,UTF8,JSON} now support multiple writing modes:

  • overwrite, where the contents of the file will be overwritten and a new file
    will be created if it does not exist (the old default),
  • create, where the file cannot exist and it will be created during the
    operation; and
  • append, where the file will be appended to.

Depends on D111734

Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/392517e43f81
Support multiple modes for IOUtils.write methods r=emalysz
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Regressions: 1712642
Blocks: 1818923
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: