Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whoops, bad example

  • Loading branch information...
commit 2ae0d5622944f1127eef8d4b811e3687679f7f81 1 parent 376a174
@mceachen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/find_exif_files
View
6 examples/find_exif_files
@@ -6,7 +6,7 @@ require 'findler'
class Findler::Filters
def self.with_exif(children)
- child_files = children.select { |ea| ea.file? }
+ child_files = children.select { |ea| ea.file? }.collect { |ea| ea.to_s }
child_dirs = children.select { |ea| ea.directory? }
e = Exiftoolr.new(child_files)
good = e.files_with_results
@@ -16,12 +16,12 @@ class Findler::Filters
end
end
-f = Findler.new(ENV['HOME'])
+f = Findler.new(".")
f.add_extensions ".jpg", ".jpeg", ".cr2", ".nef"
f.add_filter :with_exif
f.case_insensitive!
iter = f.iterator
while nxt = iter.next_file
- puts "next file: #{nxt}"
+ puts "Found file with valid EXIF header: #{nxt}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.