Skip to content

Conversation

@BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar
Copy link
Member Author

BurdetteLamar commented May 23, 2022

@jeremyevans, I've been dissatisfied with the tree-based examples. I'm thinking of trying Linux tree command to display file structure. Should I modify this PR as an experiment?

@jeremyevans, NM. I'll try this out separately.

Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

A couple minor changes requested. Can be merged without further review after those fixes are made.

lib/fileutils.rb Outdated
alias copy cp
module_function :copy

# Copies files from +src+ to +dest+.
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably should add recursively here, since that is how it differs from cp. If src is a file, I'd argue it still does a recursive copy, even if it is a trivial case.

lib/fileutils.rb Outdated
#
# If +remove_destination+ is true, this method removes each destination file before copy.
# If +src+ is the path to a file and +dest+ is the path to a directory,
# copies +src+ to +dest+:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want <tt>dest/src</tt> here, since that's what you've used elsewhere.

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