Skip to content

Commit

Permalink
fix(cgen): folders ending in /
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfzxcvbn committed Sep 11, 2024
1 parent 0bd6393 commit 5e08afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 5e08afc

Please sign in to comment.