Initial commit of our zim wiki to logseq file converter
This commit is contained in:
parent
7d6c04e219
commit
0b5c59b17c
1 changed files with 10 additions and 0 deletions
10
zimwiki-txt-to-logseq-md.py
Normal file
10
zimwiki-txt-to-logseq-md.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
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)
|
Loading…
Reference in a new issue