Committed to this self-hosted private repo so a clone builds on any machine without a separate asset sync. Copyrighted Ymir art — do not publish or redistribute. 54198 files, ~2.2 GB. asset_index.txt / assets.zip stay gitignored (derived: bake_asset_index.gd / pack-assets.sh). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013EJxkHiNKS4kybHS3XKyAJ
27 lines
500 B
Python
27 lines
500 B
Python
import os
|
|
import stat
|
|
|
|
def FindFilesByExt(path):
|
|
if path[-1] != os.sep:
|
|
path += os.sep
|
|
|
|
retList = []
|
|
for name in os.listdir(path):
|
|
if stat.S_ISDIR(os.stat(path+name).st_mode):
|
|
if name == ".svn":
|
|
continue
|
|
retList += FindFilesByExt(path+name)
|
|
else:
|
|
if "_3" in name.lower():
|
|
retList.append(path + name)
|
|
|
|
return retList
|
|
|
|
import shutil
|
|
for oldname in FindFilesByExt("."):
|
|
newname = oldname.replace("_3", "_4")
|
|
shutil.copyfile(oldname, newname)
|
|
print oldname
|
|
print newname
|
|
|