New file - creation time information

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

New file - creation time information

ソリューションへジャンプ
864件の閲覧回数
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 解決策
628件の閲覧回数
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 返答(返信)
629件の閲覧回数
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 件の賞賛
返信
628件の閲覧回数
mircopizzichini
Contributor III

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

Mirco

0 件の賞賛
返信