Is there a library method somewhere for figuring out whether a file has been encrypted with EFS? I see the Encrypt()
and Decrypt()
methods on FileInfo, but am looking for a way to query a file's state.
views:
195answers:
1I was looking for a .net answer, but it turns out that it is similar to your suggestion: use FileInfo.Attributes and check for FileAttributes.Encrypted
Matt
2009-10-23 17:56:04
Ah, sorry, missed your C# tag. Good to hear you found an answer though :)
bdonlan
2009-10-23 19:14:22