Freigeben über


2.1.4.18 Algorithm for Updating Duplicated Information

The inputs for this algorithm are as follows:

  • Link: The Link to be updated.

The pseudocode for the algorithm is as follows:

  • Set Link.CreationTime to Link.File.CreationTime.

  • Set Link.LastAccessTime to Link.File.LastAccessTime.

  • Set Link.LastModificationTime to Link.File.LastModificationTime.

  • Set Link.LastChangeTime to Link.File.LastChangeTime.

  • If Link.File.FileType is DataFile:

    • Set DefaultStream to the entry in Link.File.StreamList where DefaultStream.Name is empty (locate the default stream for the given file).

    • Set Link.AllocationSize to DefaultStream.AllocationSize.

    • Set Link.FileSize to DefaultStream.Size.

  • EndIf

  • Set Link.FileAttributes to Link.File.FileAttributes.

  • Set Link.ExtendedAttributesLength to Link.File.ExtendedAttributesLength.

  • Set Link.ReparseTag to Link.File.ReparseTag.