Closed Bug 1655460 Opened 4 years ago Closed 4 years ago

Port OS.File setDates to C++

Categories

(Toolkit Graveyard :: OS.File, task)

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: mail, Assigned: mail)

References

Details

Attachments

(1 file)

Part of larger work to port OS.File to C++, we need a static method in the IOUtils interface which can change modification times for files.

WebIDL does not have a Date type, and existing usages of OS.File.setDates outside of tests do not appear to actually supply custom date arguments (thus defaulting to updating the file time stamps to the current date/time).

Given this, IOUtils will implement a touch method, which updates the timestamps to the current time.

Assignee: nobody → krourke

This patch introduces a touch method to the IOUtils method, which allows
callers to update the modification time for a file on disk.

Depends on D86831

Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a5aecc7a6469 Implement IOUtils::touch method r=barret,Gijs
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d218098d916f Implement IOUtils::touch method r=barret,Gijs
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Blocks: 1752432
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: