Skip to content

Instantly share code, notes, and snippets.

@duolanda
duolanda / date_change.py
Last active April 9, 2025 12:15
Change siyuan note date by exported md file from evernote2md
import os
import json
import re
import datetime
def process_files(directory_path):
'''
遍历 SiYuan/data 目录下所有 .sy 结尾的文件,提取文件的标题和唯一码,生成映射数组,将映射数组保存到 mappings.txt 文件中
'''