module Fingerprint::Find

Public Class Methods

find(root) { |path| ... } click to toggle source
# File lib/fingerprint/find.rb, line 27
def self.find(root)
        # Ensure root is a directory:
        root += File::SEPARATOR unless root.end_with?(File::SEPARATOR)
        
        ::Find.find(root) do |path|
                yield Build::Files::Path.new(path, root)
        end
end
prune() click to toggle source
# File lib/fingerprint/find.rb, line 36
def self.prune
        ::Find.prune
end