Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure resizetized image files are writable
Fixes #23397 Commit ff5f3f0 added code which "touches" a file to make sure its LastWrite time is up to date. This was to help solve certain build issues. However there was an oversight. Certain source control systems always check out files `readonly`. In these cases the file attributes are copied when we make a copy of a file to be resizetized. When that happens we end up with the following error. ``` Access to the path 'Debug\net8.0-android\resizetizer\r\drawable\foo.png' is denied. ``` To fix this lets make sure that the file is writable before we try to update it. Also fix some formatting to make sure it matches.
- Loading branch information