开发者

Generating conditional Unique Identifiers

I've a开发者_Go百科n 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.


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜