Getting to the way it's supposed to be!
This commit is contained in:
16
modules/ufbx/data/cache_fuzz/mcx/rename.py
Normal file
16
modules/ufbx/data/cache_fuzz/mcx/rename.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
index = 0
|
||||
for f in os.listdir("."):
|
||||
if not f.endswith(".mcx"): continue
|
||||
if f.startswith("fuzz_"):
|
||||
index = max(index, int(f[5:-4]))
|
||||
|
||||
print(index)
|
||||
|
||||
for f in os.listdir("."):
|
||||
if f.endswith(".py"): continue
|
||||
if not f.startswith("fuzz_"):
|
||||
index += 1
|
||||
name = f"fuzz_{index:04}.mcx"
|
||||
os.rename(f, name)
|
||||
Reference in New Issue
Block a user