Logical bug in NTFS - modification date is not set when stream is deleted

Tech-Archive recommends: Fix windows errors by optimizing your registry



It seems that somehow the interest in NTFS related questions is low.
But I have further observations that I would like to share with you.

In NTFS every file can have streams. Lets take the stream
"\005SummaryInformation" which is used to save the Summary Information
visible in the properties of a file.

If you add this stream by entering a comment in the properties the
modification date of the file changes. Every further modification to
the summary stream will change the modification date too.

But if you simply delete the associated stream with DeleteFile the
modification date is not changed to reflect this operation:

DeleteFileW(L"c:\\file.txt:\005SummaryInformation");

This is a logical NTFS bug for me.

Best regards,
Holger

.



Relevant Pages

  • Re: Structured Storage vs. NTFS storage??
    ... NTFS in Win2K introduces streams besides the main file stream, ... which is analogous to structured storage. ... >> and reopens the property set, ...
    (microsoft.public.win32.programmer.ole)
  • Re: Attributes of a file
    ... It's not supported in .net it's a feature of NTFS, ... one stream of data, usually the first is the file itself, you can ... Florida Department Of Transportation ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Warning note from OS when copying exe to flash
    ... John John, or anyone else who wants to chime in - I wrote the initial post ... ADS exist only on NTFS volumes, if you copy the files to another file ... NTFS volume with Internet Explorer and IE inserted the data stream to ... AlternateStreamView - View/Copy/Delete NTFS Alternate Data Streams ...
    (microsoft.public.win2000.general)
  • NTFS: minor flaws in handling of streams and tunneling
    ... In NTFS every file can have streams. ... If you add this stream by entering a comment in the properties of the ... NTFS Tunneling preserves the date values of files when you replace ... delete file Z from folder F ...
    (microsoft.public.win32.programmer.kernel)
  • Re: File Summary Storage location
    ... The summary information is stored in a separate NTFS stream. ... Using streams.exe you should be able to see the additional stream of your textfile. ...
    (microsoft.public.win32.programmer.kernel)