Skip to content

Commit c23a82c

Browse files
committed
✅ add test.py
1 parent faaa2be commit c23a82c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
from ohmytmp import Initializer
3+
4+
src = '../'
5+
dst = '../example'
6+
7+
8+
def walk(src: str, dst: str):
9+
a = Initializer(dst)
10+
for p, _, f in os.walk(src):
11+
for i in f:
12+
print(a.init_file(os.path.join(p, i)).to_dict())
13+
14+
walk(src, dst)

0 commit comments

Comments
 (0)