user4126589
user4126589

Reputation: 51

What is a FolderRelativeId for a storage item?

It is written in MSDN:

An identifier for the current item. This ID is unique for the query result or StorageFolder that contains the item and can be used to distinguish between items that have the same name.

But it still isn't clear to me. Can I use it as a unique id which helps me to compare equality of any two given files?

Upvotes: 3

Views: 604

Answers (1)

Chubosaurus Software
Chubosaurus Software

Reputation: 8161

Here is a great article about FolderRelativeId. It basically is an unique ID for a file.

There is a difference between a file with the same name and a file that is an exact copy of the another file (which should have the same FolderRelativeId).


A good use for such an ID is when you're updating a huge program. Why copy files from the new update if there is one already on disk that is exactly the same, just skip that file and go to the next.

Upvotes: 1

Related Questions