MapleStoryPython
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: MapleStoryPython | ||
| Version: 0.0.3 | ||
| Version: 0.0.4 | ||
| Summary: No description. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/a405457747/MapleStoryPython |
@@ -53,3 +53,18 @@ # -*- coding: utf-8 -*- | ||
| # 递归执行委托,exts是白名单,dirs是黑名单 | ||
| def traverseDir(filepath, action, exts=['.txt', '.tex'],dirs=['biantaiwenjianjia']): | ||
| files = os.listdir(filepath) | ||
| for fi in files: | ||
| fi_d = os.path.join(filepath, fi) | ||
| if os.path.isdir(fi_d): | ||
| dirName =fi; | ||
| if dirName not in dirs: | ||
| traverseDir(fi_d, action, exts,dirs) | ||
| else: | ||
| fileNameFull = os.path.abspath(fi_d) | ||
| ext = os.path.splitext(fileNameFull)[1] | ||
| if ext in exts: | ||
| action(fileNameFull) | ||
| if __name__ == '__main__': | ||
| main(); |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: MapleStoryPython | ||
| Version: 0.0.3 | ||
| Version: 0.0.4 | ||
| Summary: No description. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/a405457747/MapleStoryPython |
+1
-1
@@ -8,3 +8,3 @@ import setuptools | ||
| name="MapleStoryPython", | ||
| version="0.0.3", | ||
| version="0.0.4", | ||
| author="skyAllen", | ||
@@ -11,0 +11,0 @@ author_email="894982165@qq.com", |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
5031
12.7%82
20.59%