Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool breaks with single file containing dash #65

Open
IceflowRE opened this issue Jul 3, 2024 · 0 comments
Open

Tool breaks with single file containing dash #65

IceflowRE opened this issue Jul 3, 2024 · 0 comments

Comments

@IceflowRE
Copy link

https://github.com/ful1e5/clickgen/blob/ce70d07a0de82795dbedb9ebda594e79cacd4148/src/clickgen/scripts/clickgen.py#L88C17-L88C22

Using a file first-second.png will result into two files.

Something like this fixes it

- name = Path(files[0].name.split("-")[0])
+ name = Path(files[0].name)
+ if len(files) > 1:
+         name = Path(files[0].name.split("-")[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant