# File lib/puppet/type/file.rb, line 486
486:   def remove_less_specific_files(files)
487:     mypath = self[:path].split(File::Separator)
488:     other_paths = catalog.vertices.
489:       select  { |r| r.is_a?(self.class) and r[:path] != self[:path] }.
490:       collect { |r| r[:path].split(File::Separator) }.
491:       select  { |p| p[0,mypath.length]  == mypath }
492: 
493:     return files if other_paths.empty?
494: 
495:     files.reject { |file|
496:       path = file[:path].split(File::Separator)
497:       other_paths.any? { |p| path[0,p.length] == p }
498:       }
499:   end