Introduction
This script is designed to add the current date to the frontmatter of each markdown file in the /add-dates
directory and then move the processed files to the /dates-added
directory. It uses the datetime
and os
modules to accomplish this.
Key Features
- Adds the current date in ISO format to the frontmatter of each .md file in the
/add-dates
directory. - Moves the processed files to the
/dates-added
directory.
Requirements
- Python 3 installed on your system.
- .md files to process stored in the
/add-dates
directory.
Usage
- Copy the .md files you wish to process into the
/add-dates
directory. - Run the script by executing
python date-adder-now.py
in the terminal. - The script will add the current date in ISO format to the frontmatter of each file and then move the processed files to the
/dates-added
directory.
Download
To get your hands on this script, simply download the file and run it on your local machine.