Skip to content

Commit

Permalink
Clarify difference between cp_r and install (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored Jun 21, 2022
1 parent 42c9685 commit 94a599e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# - {Setting}[rdoc-ref:FileUtils@Setting].
# - {Comparing}[rdoc-ref:FileUtils@Comparing].
# - {Copying}[rdoc-ref:FileUtils@Copying].
# - {Moving}[rdoc-ref:FileUtils@Copying].
# - {Moving}[rdoc-ref:FileUtils@Moving].
# - {Options}[rdoc-ref:FileUtils@Options].
#
# === Creating
Expand Down Expand Up @@ -76,8 +76,9 @@
# - ::copy_stream: Copies a stream.
# - ::cp, ::copy: Copies files.
# - ::cp_lr: Recursively creates hard links.
# - ::cp_r: Recursively copies files.
# - ::install: Recursively copies files (with options different from ::cp_r).
# - ::cp_r: Recursively copies files, retaining mode, owner, and group.
# - ::install: Recursively copies files, optionally setting mode,
# owner, and group.
#
# === Moving
#
Expand Down Expand Up @@ -835,6 +836,9 @@ def cp(src, dest, preserve: nil, noop: nil, verbose: nil)
# and +dest+ (a single path)
# should be {interpretable as paths}[rdoc-ref:FileUtils@Path+Arguments].
#
# The mode, owner, and group are retained in the copy;
# to change those, use FileUtils.install instead.
#
# If +src+ is the path to a file and +dest+ is not the path to a directory,
# copies +src+ to +dest+:
#
Expand Down

0 comments on commit 94a599e

Please sign in to comment.