Closed Bug 1655460 Opened 1 year ago Closed 1 year ago

Port OS.File setDates to C++

Categories

(Toolkit :: OS.File, task)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: mail, Assigned: mail)

References

(Blocks 1 open bug)

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: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.