Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmdirRecurse and remove cannot remove readonly files on windows #10410

Open
dlangBugzillaToGithub opened this issue Mar 7, 2020 · 1 comment
Labels
Arch:x86 Issues specific to x86 OS:Windows Issues Specific to Windows Severity:Enhancement

Comments

@dlangBugzillaToGithub
Copy link

johnnymarler (@marler8997) reported this on 2020-03-07T19:45:44Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=20647

CC List

Description

It would be helpful for phobos to provide a way to remove readonly files on windows.

A common use case is when removing git repositories.  On windows, git creates readonly files inside its ".git" sub-directory.  This means phobos' `remove` and `rmdirRecurse` functions will fail when trying to delete directories that contain git repositories.

To remove readonly files on windows, you must remove the READONLY file attribute.  I'd like to see phobos provide functionality to remove files and directories with readonly files in them.
@dlangBugzillaToGithub
Copy link
Author

johnnymarler (@marler8997) commented on 2020-03-07T20:20:25Z

discussion here: https://forum.dlang.org/post/bbuvyirphcogtclachci@forum.dlang.org

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86 Issues specific to x86 OS:Windows Issues Specific to Windows Severity:Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants