New file - creation time information

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

New file - creation time information

跳至解决方案
815 次查看
mircopizzichini
Contributor III

Hi

In MFS, is there a way to set file creation time? If I write a file on SD card, from PC I see only last modification time, but I cannot set creation time.

Does MFS support this further time information, or MFS file handle keeps only last modification time/date?

Thank you

标签 (1)
1 解答
579 次查看
RadekS
NXP Employee
NXP Employee

MFS doesn’t naturally support creation time and creation date attributes.

It is optional part of FAT implementation and in case of MFS it is not directly implemented. For full FAT specification please search fatgen103.pdf file.

Theoretically you can edit mfs_dir_entry structure in mfs.h file or directly edit RESERVED field in this structure.

DIR_CrtTime will be in position RESERVED[2] and RESERVED[3]

DIR_CrtDate will be in position RESERVED[4] and RESERVED[5]

Note: This presents customer modification of MQX code.


Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
580 次查看
RadekS
NXP Employee
NXP Employee

MFS doesn’t naturally support creation time and creation date attributes.

It is optional part of FAT implementation and in case of MFS it is not directly implemented. For full FAT specification please search fatgen103.pdf file.

Theoretically you can edit mfs_dir_entry structure in mfs.h file or directly edit RESERVED field in this structure.

DIR_CrtTime will be in position RESERVED[2] and RESERVED[3]

DIR_CrtDate will be in position RESERVED[4] and RESERVED[5]

Note: This presents customer modification of MQX code.


Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
579 次查看
mircopizzichini
Contributor III

Thank you very much, I was able to get it working!

Mirco

0 项奖励
回复