summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb')
-rw-r--r--lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
index c384113a02..f7c00e7754 100644
--- a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
+++ b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
@@ -161,7 +161,7 @@ class Chef
# members.json and org.json may be found.
#
def root_dir
- existing_paths = root_paths.select { |path| File.exists?(path) }
+ existing_paths = root_paths.select { |path| File.exist?(path) }
if existing_paths.size > 0
MultiplexedDir.new(existing_paths.map do |path|
dir = FileSystemEntry.new(name, parent, path)
@@ -184,7 +184,7 @@ class Chef
return root_dir.child(name)
end
- paths = (child_paths[name] || []).select { |path| File.exists?(path) }
+ paths = (child_paths[name] || []).select { |path| File.exist?(path) }
if paths.size == 0
return NonexistentFSObject.new(name, self)
end