Created
May 9, 2021 08:48
-
-
Save misode/6b8a39eccbf4cf651541045820467bca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
for dir in os.walk("."): | |
if not dir[0].startswith(r".\gm4_"): | |
continue | |
if not dir[0].endswith(r"\data"): | |
continue | |
for namespace in dir[1]: | |
if namespace in ["load", "minecraft"]: | |
continue | |
if namespace.startswith("gm4"): | |
continue | |
src = os.path.join(dir[0], namespace) | |
dst = os.path.join(dir[0], "gm4_" + namespace) | |
print(f"{src} -> {dst}") | |
os.rename(src, dst) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment