2022-04-18 20:22:42 +08:00
|
|
|
import os
|
|
|
|
|
2022-04-20 22:48:23 +08:00
|
|
|
work_path = os.path.expandvars('$HOME') + '/.config/PyQtToDoList/ToDoList'
|
2022-04-18 20:22:42 +08:00
|
|
|
# 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])
|
2022-04-20 22:48:23 +08:00
|
|
|
# for name in dirs:
|
|
|
|
# # print(os.path.join(root, name))
|
|
|
|
# print(os.path.join(root, name).split('/')[-1])
|