Remove file.exists? deprecation in favor of file.exist?

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-03-11 13:07:55 +05:30
parent dc99737283
commit dc46fe9a73

View file

@ -60,7 +60,7 @@ module InspecPlugins
if File.file?(source_file)
# Be git-like and only create directories if they contain a file
containing_directory = full_destination_item_path.dirname
unless File.exists?(containing_directory)
unless File.exist?(containing_directory)
ui.list_item "Creating directory #{ui.emphasis(containing_directory)}"
FileUtils.mkdir_p(containing_directory)
end