Removing readonly files on windows with std.file
Mann
m at a.nn
Sun Mar 8 19:11:28 UTC 2020
On Sunday, 8 March 2020 at 09:04:34 UTC, Patrick Schluter wrote:
> Microsoft says [1]
> FILE_ATTRIBUTE_READONLY
> A file that is read-only. Applications can read the file, but
> cannot write to it or delete it. This attribute is not honored
> on directories.
>
> So the behaviour of del or the explorer is violating theur own
> definition.
>
>
> [1]:
> https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants
Perhaps a small addendum to rmdirRecurse's documentation
concerning this behavior would be appropriate?
More information about the Digitalmars-d
mailing list