Skip to content

Fix File.find_matching_files() #207

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

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

skozlovf
Copy link
Contributor

@skozlovf skozlovf commented Feb 2, 2023

File.__find_matching_files() can't correctly detect matching files because of missing file size info. It compares remote file size with the bytes builtin.

Regression: 0abf641.

This PR adds bytes argument to the File.__find_matching_files().

PS: Better to rename bytes -> bytes_ to not shadow builtin name and prevent such issues in the future.

Copy link
Collaborator

@hallacy hallacy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@hallacy hallacy merged commit 5ac7946 into openai:main Feb 6, 2023
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Nov 14, 2023
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
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