title: Programmatically change folder read only flag using C#
body: <p>I looked up at several threads on how to switch the read only attribute of folders (most of them do the same for changing file attributes, which is to assign Attributes.Normal to the file's Attributes). I want to select a Directory and have all its subdirectories without the read only flag (I succeeded in doing so for all its files, but I still get the </p>
  
  <p>I have to say that this does not work with me, i.e., it does not change the folder flag.
  (If I am not wrong I also saw that some people claim this does not work with directories).</p>
  
  <p>I even read some remarks questioning the relevance of the folder Read Only attribute in Windows 7.</p>
  
  <p>So very straightforwardly, is it possible to change a folder read only attribute in Windows 7, using C#? (I also tried changing the directory's DirectorySecurity object to FullControl, Modify, but again to no avail).</p>