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

Change to fix the ValueError at the split #43

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

alicethefemme
Copy link
Contributor

If your folder that you were hashing, had files or folders with a space in their name, then this line of code will throw an error.

The code fixes it here by specifying the double space, and then a maxsplit=1 count to ensure that it only does the first double space, so if a folder or a file has a double space in the name they don't get split as well.

When using this in testing, this the error and I was unable to make another error with this.

@Johannes11833
Copy link
Owner

Good catch, thank you!

@Johannes11833 Johannes11833 merged commit e067334 into Johannes11833:master Nov 14, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants