Skip to content

Commit c3abf39

Browse files
committed
A workaround for RBS
1 parent fde0f07 commit c3abf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fileutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ def remove_file(path, force = false)
14871487
# Related: {methods for deleting}[rdoc-ref:FileUtils@Deleting].
14881488
#
14891489
def remove_dir(path, force = false)
1490-
raise Errno::ENOTDIR, path unless File.directory?(path)
1490+
raise Errno::ENOTDIR, path unless force or File.directory?(path)
14911491
remove_entry path, force
14921492
end
14931493
module_function :remove_dir

0 commit comments

Comments
 (0)