files
files copied to clipboard
Skip chmod if permission is already the same
| Q | A |
|---|---|
| Is bugfix? | ❌ |
| New feature? | ❌ |
| Breaks BC? | ❌ |
| Fixed issues | comma-separated list of tickets # fixed by the PR, if any |
In the original code if chmod is not permitted, php 7.4 throws a warning and the exception actually won't get thrown.
If we need to ensureDirectory an existing directory (which the developer may not know it existed and with sensitive permission), it will overwrite the original permission which may not be desired.
What do you mean by "sensitive permission"?