Closed Bug 1660843 Opened 4 years ago Closed 4 years ago

Add file creation time to the FileInfo struct returned by IOUtils::stat

Categories

(Toolkit Graveyard :: OS.File, defect)

defect

Tracking

(firefox85 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: mail, Assigned: barret, NeedInfo)

References

Details

Attachments

(1 file)

Like OS.File.stat, IOUtils.stat should support querying the file creation time on supported platforms.

Support for file creation time varies by platform, so in the existing FileInfo dictionary, we should add a nullable creationTime field, which will have a value on Windows and macOS, but be null on Linux where creation time can't currently be supported.

Depends on: 1660841

Support for this in IOUtils will rely on nsLocalFile exposing a method to query the file creation time.

Blocks: 1649598

The severity field is not set for this bug.
:Yoric, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dteller)
Flags: needinfo?(dteller) → needinfo?(mail)

:Yoric I'm back at school now so I might not as quick to reply, but what info do you need from me for this?

Assignee: nobody → brennie
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/856ffced8cdf Return creation time from IOUtils.stat() on supported platforms r=emalysz
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
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: