def clean():
absolute_path = os.path.abspath(__file__)
mypath = os.path.dirname(absolute_path)
for root, dirs, files in os.walk(mypath,topdown=False):
for name in dirs:
fname = join(root,name)
if not os.listdir(fname): #to check wither the dir is empty
os.removedirs(fname)
Alpha_Organizer.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录