share/rbbt_commands/system/optimize in rbbt-util-5.17.85 vs share/rbbt_commands/system/optimize in rbbt-util-5.17.86
- old
+ new
@@ -56,10 +56,11 @@
end
end
Log.info Log.color(:magenta, "Processing Tokyo Cabinet files")
-all_files = directory.glob('**/*')
+all_files = directory.glob('**/*') + directory.glob('**/.*')
+all_files.uniq!
TSV.traverse all_files, :type => :array, :bar => "Processing Tokyo Cabinet files" do |file|
cmd = 'file "' << file << '"'
file_type = CMD.cmd(cmd).read.strip.partition(/:\s+/).last
next unless file_type =~ /Tokyo/
type = file_type.split(", ")[1]