files icon indicating copy to clipboard operation
files copied to clipboard

Skip chmod if permission is already the same

Open phena109 opened this issue 4 years ago • 1 comments

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.

phena109 avatar Mar 15 '21 03:03 phena109

What do you mean by "sensitive permission"?

samdark avatar Mar 15 '21 08:03 samdark