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

Updated FileUtils to match the interfaces it's wrapping. #10747

Merged

Conversation

yb66
Copy link
Contributor

@yb66 yb66 commented May 26, 2021

FileUtils should handle Path arguments, File and Dir do.

Let me know if you want specs/tests updated.

Regards,
iain

FileUtils should handle Path arguments, File and Dir do.
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

Thank you!

@jkthorne
Copy link
Contributor

I love this change and have run into this multiple times. The only comment I have is what do you think about extracting (Path | String) into an alias on the module?

@straight-shoota
Copy link
Member

straight-shoota commented May 26, 2021

@wontruefree That would affect all occurrences, not just in this module. It's definitely out of scope for this PR.

@straight-shoota straight-shoota added this to the 1.1.0 milestone Jun 1, 2021
@straight-shoota straight-shoota merged commit 1f2d90c into crystal-lang:master Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants