import os
import os.path
def dfs_showdir(path, depth):
if depth == 0:
print("root:[" + path + "]")
for item in os.listdir(path):
if '.git' not in item:
# print("*" * depth + item)
newitem = path +'/'+ item
if os.path.isdir(newitem):
print("Dire:["+ newitem + "]")
dfs_showdir(newitem, depth +1)
else:
print("File:[" + newitem + "]")
dfs_showdir("D:/CET/Common", 0)