Closed Bug 1788997 Opened 3 years ago Closed 3 years ago

Add a write mode to IOutils that appends or creates

Categories

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

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: beth, Assigned: beth)

References

Details

Attachments

(1 file)

There is currently no way to write to append to a file, optionally creating it if it does not exist (the equivalent of O_CREAT | O_APPEND).

Attachment #9292922 - Attachment description: WIP: Bug 1788997 - Add appendOrCreate write mode to IOUtils r?nika → Bug 1788997 - Add appendOrCreate write mode to IOUtils r?nika
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b58a5a6cc939 Add appendOrCreate write mode to IOUtils r=nika

Backed out for causing mochitest failures in dom/system/tests/ioutils/test_ioutils_read_write.html

Backout link: https://hg.mozilla.org/integration/autoland/rev/53d3134566d8bd4c597c403f82d223bc110aee1a

Push with failures

Failure log

TEST-UNEXPECTED-FAIL | dom/system/tests/ioutils/test_ioutils_read_write.html | TypeError: [...] is not a function - Should not throw any errors
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bf6dc186d6c Add appendOrCreate write mode to IOUtils r=nika
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Flags: needinfo?(brennie)
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: