[ruby/fileutils] Clarify difference between cp_r and install (https://github.com/ruby/fileutils/pull/95)

https://github.com/ruby/fileutils/commit/94a599e69f
This commit is contained in:
Burdette Lamar 2022-06-21 12:23:06 -05:00 committed by git
parent 102a97e096
commit fdd1102550

View File

@ -24,7 +24,7 @@ end
# - {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
@ -76,8 +76,9 @@ end
# - ::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
#
@ -833,6 +834,9 @@ module FileUtils
# 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+:
#