Access to path is denied if .uplugin is read-only
Closed this issue · 2 comments
Hi, I noticed that if you try to use this tool to disable plugins in the engine source that is under Perforce server (meaning all files are read-only by default unless checked out) it will yield error:
Access to the path '...' is denied.
I was wondering if it would be possible for the app to automatically clear the read-only status on the .uplugin
files?
I think it is possible, if running the app as Administrator.
I will change the source code and test here to give a try, probably next week after the tests are done I will reply to you with the results.
Hi, I updated the project to v1.2.5 and added CheckAccess() to verify if .uplugin files are ReadOnly before open and I try to change the FileAttribute to Not ReadOnly.
If the app can't change the file attribute, a new exception message will throw suggesting to Run as Administrator.
If running as administrator and still the app cannot change the file attribute then there is nothing I can do. 🤣
I'm closing this issue, but feel free to add replies if this changes don't solve your issue.
Cheers! 🍻👍