Skip to content

Commit

Permalink
Update note
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Jan 10, 2025
1 parent e615c0d commit c031f78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AL_Common/General/FileAndPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,8 @@ public static void Dir_UnSetReadOnly(string dirOnDiskFullPath, bool throwExcepti
{
try
{
// TODO: Apparently ReadOnly is ignored for directories
// IMPORTANT: ReadOnly is NOT ignored for directories despite what it says here, as I learned to my cost:
// https://support.microsoft.com/en-us/topic/you-cannot-view-or-change-the-read-only-or-the-system-attributes-of-folders-in-windows-server-2003-in-windows-xp-in-windows-vista-or-in-windows-7-55bd5ec5-d19e-6173-0df1-8f5b49247165
// Says up to Win7, doesn't say anything about later versions, but have to assume it still holds...?
_ = new DirectoryInfo(dirOnDiskFullPath).Attributes &= ~FileAttributes.ReadOnly;
}
catch (Exception ex)
Expand Down

0 comments on commit c031f78

Please sign in to comment.