Module: Fingerprint::Find

Defined in:
lib/fingerprint/find.rb

Class Method Summary collapse

Class Method Details

.find(root) ⇒ Object



27
28
29
30
31
32
33
34
# 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

.pruneObject



36
37
38
# File 'lib/fingerprint/find.rb', line 36

def self.prune
	::Find.prune
end