Skip to content

[DOC] Doc for ::mkdir#165

Merged
peterzhu2118 merged 2 commits into
ruby:masterfrom
BurdetteLamar:rmdir_doc
Jun 14, 2026
Merged

[DOC] Doc for ::mkdir#165
peterzhu2118 merged 2 commits into
ruby:masterfrom
BurdetteLamar:rmdir_doc

Conversation

@BurdetteLamar

Copy link
Copy Markdown
Member

Harmonizes with mkdir methods in the core.

Comment thread lib/fileutils.rb Outdated
# ```ruby
# FileUtils.mkdir('bar', mode: 0664)
# File.stat(Dir.new('bar')).mode.to_s(8) # => "40664"
# FileUtils.rmdir(%w[foo bar])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This example only created the bar directory.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed.

@peterzhu2118 peterzhu2118 merged commit 5891a01 into ruby:master Jun 14, 2026
36 checks passed
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.

2 participants