import os
def print_directory_contents(sPath):
for sChild in os.listdir(sPath):
sChildPath = os.path.join(sPath,sChild)
if os.path.isdir(sChildPath):
print_directory_contents(sChildPath)
else:
print("the path is :",sChildPath)
if __name__ == "__main__":
print_directory_contents("/Users/lz/Documents/Microsoft 用户数据")