How can I programatically remove the readonly attribute from a directory in C#?
Setting Attributes to FileAttributes.Normal worked for me on both folders and files.
FileAttributes.Normal