Wednesday, October 18th 2017, 7:39am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

HaKo

Beginner

Date of registration: Apr 11th 2011

Posts: 2

1

Wednesday, December 28th 2011, 11:13am

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

SEGGER - Marius

Super Moderator

Date of registration: Aug 10th 2011

Posts: 29

2

Thursday, January 19th 2012, 2:53pm

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