pyqt-todolist/test/SyncTest.py

13 lines
387 B
Python
Raw Normal View History

2022-04-18 20:22:42 +08:00
import os
work_path = os.path.expandvars('$HOME') + '/.config/PyQtToDoList'
# sync_path = os.walk(work_path)
# print(sync_path)
for root, dirs, files in os.walk(work_path, topdown=False):
for name in files:
print(os.path.join(root, name).split('/')[-1])
for name in dirs:
# print(os.path.join(root, name))
print(os.path.join(root, name).split('/')[-1])