Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File modification date doesn't change
Message
De
22/04/2016 11:38:51
 
 
À
22/04/2016 11:07:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01635247
Message ID:
01635250
Vues:
48
>I'm running a VFP package that updates several free VFP tables.
>When I browse the tables, I see the changes I make and the lastupdate column shows the correct date and time.
>However, when I look at the table in windows explorer the date doesn't change.
>It's windows 10.
>I checked the path several times.
>Any idea?
>
>Never mind.
>When I exited the app, the modification dates changed.

Depends on

(1) When vfp flushes the buffers to the windows' buffer cache

(2) When windows flushes its cache
The file times only changes when windows physically writes to a file

Read here https://msdn.microsoft.com/en-us/library/windows/desktop/aa365465(v=vs.85).aspx under FILE_NOTIFY_CHANGE_LAST_WRITE
Any change to the last write-time of files in the watched directory or subtree causes a change notification wait operation to return.
The operating system detects a change to the last write-time only when the file is written to the disk.
For operating systems that use extensive caching, detection occurs only when the cache is sufficiently flushed.
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform