lib/excavate/extractors/ole_extractor.rb in excavate-0.2.4 vs lib/excavate/extractors/ole_extractor.rb in excavate-0.2.5
- old
+ new
@@ -13,9 +13,11 @@
def do_extract(target)
reset_filename_lookup
Ole::Storage.open(@archive) do |ole|
children(ole).each do |file|
+ next if ole.file.directory?(file)
+
filename = prepare_filename(file)
path = File.join(target, filename)
content = ole.file.read(file)
File.write(path, content, mode: "wb")
end