Skip to content

Commit 42c9685

Browse files
Correct method references for secure removal (#93)
1 parent fc3cc28 commit 42c9685

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/fileutils.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@
166166
# \Method \FileUtils.remove_entry_secure removes securely
167167
# by applying a special pre-process:
168168
#
169-
# - If the target path points to a directory, this method uses
170-
# {chown(2)}[https://man7.org/linux/man-pages/man2/chown.2.html]
171-
# and {chmod(2)}[https://man7.org/linux/man-pages/man2/chmod.2.html]
169+
# - If the target path points to a directory, this method uses methods
170+
# {File#chown}[https://docs.ruby-lang.org/en/master/File.html#method-i-chown]
171+
# and {File#chmod}[https://docs.ruby-lang.org/en/master/File.html#method-i-chmod]
172172
# in removing directories.
173173
# - The owner of the target directory should be either the current process
174174
# or the super user (root).

0 commit comments

Comments
 (0)