mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 13:07:17 +08:00
11 lines
274 B
Python
11 lines
274 B
Python
import os
|
|
|
|
|
|
def test_path():
|
|
desktop_path = r"C:\Users\yuruo\Desktop"
|
|
file_list = []
|
|
for dirpath, dirnames, filenames in os.walk(desktop_path):
|
|
for filename in filenames:
|
|
file_list.append(os.path.join(dirpath, filename))
|
|
print(file_list)
|