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

fix: Fix error writing on Windows to locations outside of C drive #20245

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

nameexhaustion
Copy link
Collaborator

This should fix #20231. I couldn't reproduce the issue so this is just a guess based on the fact that we were apparently able to at least create the file.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Dec 10, 2024
@@ -70,10 +70,13 @@ pub fn try_get_writeable(
} else {
let path = resolve_homedir(&path);
std::fs::File::create(&path).map_err(PolarsError::from)?;
let path = std::fs::canonicalize(&path)?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we don't actually need to do this here, was copy pasted from force_async code

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.65%. Comparing base (c2ef569) to head (195638c).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #20245   +/-   ##
=======================================
  Coverage   79.65%   79.65%           
=======================================
  Files        1565     1565           
  Lines      218201   218278   +77     
  Branches     2475     2475           
=======================================
+ Hits       173799   173876   +77     
  Misses      43835    43835           
  Partials      567      567           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nameexhaustion nameexhaustion marked this pull request as ready for review December 10, 2024 10:54
@ritchie46 ritchie46 merged commit 117a0ba into pola-rs:main Dec 10, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

polars 1.17 can not save file to RamDisk
2 participants