Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lowercase directories, not files #42

Conversation

ojeytonwilliams
Copy link
Contributor

@ojeytonwilliams ojeytonwilliams commented Jun 11, 2024

Checklist:

As written the plugin was making files lowercase and ignoring directories.

Also life gets a little simpler if you update the directories as you recurse, rather than gathering them all and lowercasing. Reason being, if you have a nested directories, then you have to have rename the children first. If you rename as you descend into the tree, this problem goes away.

@ojeytonwilliams ojeytonwilliams force-pushed the fix/lowercase-directories-not-files branch from 54ed87b to 2dffc90 Compare June 11, 2024 12:28
Copy link
Member

@ShaunSHamilton ShaunSHamilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spent way too long trying to review the dist/ changes 🤦‍♂️ .

One thing I might have changed is only renaming if the toLowerCase name is different, but that is a minor thing.

@ojeytonwilliams
Copy link
Contributor Author

No, that's a good point. Thanks, Shaun. I'll update that now.

@ojeytonwilliams ojeytonwilliams enabled auto-merge (squash) June 11, 2024 14:00
@ojeytonwilliams ojeytonwilliams merged commit 96c35ec into freeCodeCamp:main Jun 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants