Remove readonly attribute from directory June 11, 2023 by Tarik var di = new DirectoryInfo("SomeFolder"); di.Attributes &= ~FileAttributes.ReadOnly;