NLV
NLV

Reputation: 21641

Generating conditional Unique Identifiers

I've an application where I read all the sub-folders inside a folder. I want to read only the folders created by my application. So I want to generate unique identifiers as folder names which should be recognizable as the ones created by my applications. If any other folders are copied in the same location I want to ignore those folders by checking their names.

Upvotes: 1

Views: 142

Answers (1)

DarkSquirrel42
DarkSquirrel42

Reputation: 10257

if you can rely on the file system being NTFS you could tag all your folders with an alternate datastream check if such a stream is present while reading the list ... just an idea

//edit

if you want some tag that only your app can create .... place a file/alternate datastream in the folder containing its path, and a message authentication code (like hmacMD5 or something like that)

Upvotes: 2

Related Questions