Method: Work::Md::DateFile.date_to_file_locations

Defined in:
lib/work/md/date_file.rb

.date_to_file_locations(some_date) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/work/md/date_file.rb', line 85

def self.date_to_file_locations(some_date)
  work_dir = Work::Md::Config.work_dir

  {
    name: "#{some_date.strftime('%Y/%m/%d')}.md",
    dir: "#{work_dir}/#{some_date.strftime('%Y/%m')}",
    path: "#{work_dir}/#{some_date.strftime('%Y/%m/%d')}.md"
  }
end