# File lib/puppet/util/autoload/file_cache.rb, line 22
22:   def directory_exist?(path)
23:     cache = cached_data?(path, :directory?)
24:     return cache unless cache.nil?
25: 
26:     protect(path) do
27:       stat = File.lstat(path)
28:       if stat.directory?
29:         found_file(path, stat)
30:         return true
31:       else
32:         missing_file(path)
33:         return false
34:       end
35:     end
36:   end