Skip to content

Conversation

@LeonardoLBraga
Copy link
Contributor

What does this PR do?

This PR fixes an issue on Windows where folder creation would fail when organizing by file size, due to the use of invalid characters (<, >) in folder names.

What was changed?

The folder names were updated to use valid characters:

  • "Small (<1MB)""Small (under 1MB)"
  • "Medium (1–10MB)""Medium (1-10MB)"
  • "Large (>10MB)""Large (over 10MB)"

Why is this fix necessary?

Windows does not allow characters like < and > in folder or file names. This was causing an OSError: [WinError 123].

Related Issue

Closes #5

@theProject
Copy link
Owner

🌟 Superstar Contributor Alert!

Huge thanks again to @LeonardoLBraga for another solid contribution! This update handles cases where files might contain characters that cause issues on Windows — something I hadn’t even tested for yet. I’ve done much of this on Pythonista on my lunch breaks (hence they 80 commits to a readme when I can only use GitHub haha)

This is exactly what this project is about: real-world improvements, thoughtful collaboration, and learning as we go. Thank you for this - truly.

You’re making PySorta stronger one PR at a time.
Keep rockin, superstar! ✨

— theProject.

@theProject
Copy link
Owner

Once again - clean pass! Merging!

@theProject theProject closed this Jun 29, 2025
@theProject theProject reopened this Jun 29, 2025
@theProject
Copy link
Owner

Whoops - I closed before I merged, reopened - I’m learning too! See that hahah

@theProject theProject merged commit 23bcc8a into theProject:main Jun 29, 2025
2 checks passed
@theProject theProject added the bug Something isn't working label Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSError [WinError 123] when organizing by size on Windows due to invalid folder names.

2 participants