Closed Bug 1660843 Opened 2 years ago Closed 2 years ago

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

Categories

(Toolkit :: OS.File, defect)

defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: mail, Assigned: barret, NeedInfo)

References

(Blocks 1 open bug)

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