mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix bug with read-only permission assertion
https://discord.com/channels/1099468797410283540/1147073444219977779
This commit is contained in:
parent
ddd053e8b6
commit
d8feba85b7
@ -24,7 +24,7 @@ namespace Bloxstrap.Utility
|
||||
{
|
||||
var fileInfo = new FileInfo(filePath);
|
||||
|
||||
if (!fileInfo.IsReadOnly)
|
||||
if (!fileInfo.Exists || !fileInfo.IsReadOnly)
|
||||
return;
|
||||
|
||||
fileInfo.IsReadOnly = false;
|
||||
|
Loading…
Reference in New Issue
Block a user