How to set the modifcation date of a file

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • How to set the modifcation date of a file

    Hello,
    with the command FS_SetFileTime() I can set the creation date of a file in a FAT file system.
    But when I make changes with embOS in the file later on, how can I modify or set the modification date appropriately?
    Best regards.
    HK
  • Hello HaKo,

    It is not required to explicitly call the FS_SetFileTime() function to set the creation/modification time of a file.
    All you have to do is to make sure that the FS_X_GetTimeDate() function returns the actual time and date.
    You can find more information in the section "7.1.2.1 FS_X_GetTimeDate()" of emFile manual.

    Best Regards,
    Marius
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.