fix(cgen): folders ending in /

This commit is contained in:
zx committed 2024-09-11 07:14:50 -04:00
1 parent 0bd6393e78
commit 5e08afc0ac
1 file changed
+2
+2
View File
@@ -123,6 +123,8 @@ def generate_cyan(parser: argparse.ArgumentParser) -> None:
if os.path.isfile(f):
zf.write(f, f"inject/{os.path.basename(f)}")
else: # G YHUJMNFTGYHNFTGYHTGYHUT6Y7UJM8RFTYHNR564TY
if f.endswith("/"):
f = f[:-1] # yes this is needed to prevent a bug wtf
for dp, _, files in os.walk(f):
for f2 in files:
thing = f"{dp}/{f2}"