svn文件递归删除

federala 62 0 PY 2019-01-20 21:01:37

对项目中的 .svn 文件递归删除 def walk(path): for item in os.listdir(path): subpath = os.path.join(path, item); mode = os.stat(subpath)[stat.ST_MODE]; if stat.S_ISDIR(mode): if item==".svn": print "Clean %s ..." % subpath; print "%

用户评论
请输入评论内容
评分:
暂无评论