lib/sifttter-redux/sifttter.rb in sifttter-redux-1.0.1 vs lib/sifttter-redux/sifttter.rb in sifttter-redux-1.0.2
- old
+ new
@@ -68,10 +68,9 @@
uuid = SecureRandom.uuid.upcase.gsub(/-/, '').strip
date_for_title = date.strftime('%B %d, %Y')
datestamp = date.to_time.utc.iso8601
starred = false
-
output_dir = configuration.sifttter_redux[:dayone_local_filepath]
Dir.mkdir(output_dir) unless Dir.exists?(output_dir)
files = `find #{ configuration.sifttter_redux[:sifttter_local_filepath] } -type f -name "*.txt" | grep -v -i daily | sort`
if files.empty?