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

Changing os.path to posixpath to prevent issues #35

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

novama
Copy link
Contributor

@novama novama commented Aug 11, 2024

Changing os.path to posixpath to prevent issues when using pyminio in Windows environments.

os.path uses the current system file system separator and adjust all its functions to that. MinIO is always a posix path system. When using Pyminio in a Windows system, the paths got undesirable changed, because os.path set them to comply with Windows file system format.

This update prevents that issue to happen.

  • All tests are green.

Related issue:
#36

image

novama added 2 commits August 11, 2024 14:11
Changing os.path to posixpath to prevent issues when using pyminio in Windows environments.

os.path uses the current system file system separator and adjust all its functions to that.
MinIO is always a posix path system. When using Pyminio in a Windows system, the paths got undesirable changed, because os.path set them to comply with Windows file system format.

This update prevents that issue to happen.
@novama novama marked this pull request as ready for review August 11, 2024 20:19
@IamTugy
Copy link
Owner

IamTugy commented Aug 17, 2024

@novama Perfect!!
any chance you could create a tests with the failed path?

@IamTugy IamTugy merged commit 12b5208 into IamTugy:main Aug 20, 2024
5 checks 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