Add --skip-checks option to bypass find filtering for bulk permission fixes #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The script uses
findwith filters (! -user,! -group,! -perm) to only process files needing changes. This adds ~30% overhead on large installations when most files need fixing (e.g., initial setup, bulk restores).Changes
--skip-checks/-kbypasses ownership and permission filteringfix_ownership(),fix_code_permission_helper(),fix_content_permission_helper(),fix_htaccess_in_content_helper()now conditionally skip filters based on flagperformance-test.shscript to measure and verify the filtering overheadPerformance Impact
Usage
Use
--skip-checkswhen most files need changes; use default when only a few files need changes.The ~30% overhead statistic is measured and documented in the included
performance-test.shscript, which can be run to verify results on any system.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.