-
Notifications
You must be signed in to change notification settings - Fork 42
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
findSequenceOnDisk is case sensitive on windows #74
Comments
Thanks for the report. Do you want to submit a merge request with a fix and test for windows? |
I'm not sure what the best solution is. Forking the code inside with "if windows" can lead to some unexpected differences in the future. On our end, we use a wrapper on top of this class so I fixed it there (we are 100% windows at the moment). |
I see. I figured you might have had some local fixes since you have already investigated the issue, so a merge request would have saved time. But since you have a fix at an abstraction layer, we will just leave this as a bug to be fixed when someone has the time. |
as far as I know the only way to make glob case insensitive it by converting it to regex with something like this:
however this means replacing most of the logic in findSequenceOnDisk just for windows. |
Closing via #107 |
os.path on windows is case insensitive.
os.path.exists(some_file) returns True regardless of case
findSequenceOnDisk uses glob which is case sensitive and returns no files if the case is incorrect. This leads to a weird code where you check if the file exists and when it does you try to get the sequence which raises an exception that there are no files.
The text was updated successfully, but these errors were encountered: