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

Files that deny access for deletion #3

Open
dyslexicanaboko opened this issue May 26, 2022 · 1 comment
Open

Files that deny access for deletion #3

dyslexicanaboko opened this issue May 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dyslexicanaboko
Copy link
Owner

dyslexicanaboko commented May 26, 2022

Not sure what to do just yet when a file doesn't allow me to delete it. Example:

System.UnauthorizedAccessException: Access to the path 'C:\Dump\code folder\Projects\.git\objects\pack\pack-faef312b4a7a7c422a8ebb5df628ef23ec9cd14f.idx' is denied.

EDIT: 12/30/2022 - It will require some experimentation, but it might have something to do with attributes. Usually it's because the filename is too long. What I am thinking is providing an explicit option for allowing the application to use CMD when it cannot delete the files via dot net. Shell access should be able to delete those files no problem and more often than not it is indeed the .git folder.

@dyslexicanaboko dyslexicanaboko added the bug Something isn't working label May 26, 2022
@dyslexicanaboko dyslexicanaboko self-assigned this May 26, 2022
@dyslexicanaboko
Copy link
Owner Author

From what I have seen this is mostly limited to hidden files that are located in the .git folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant