logseq_helpers/zimwiki_txt_to_logseq_md.py

11 lines
195 B
Python
Raw Normal View History

import os
def rewrite_file(filepath):
with open(filepath, 'r') as f:
contents = f.read()
for filepath in os.listdir():
if file.endswith(".txt"):
rewrite_file(filepath)