Skip to content

Commit

Permalink
Fix windows support
Browse files Browse the repository at this point in the history
Signed-off-by: Rehan Durrani <[email protected]>
  • Loading branch information
RehanSD committed Jun 3, 2022
1 parent f1bc60a commit a7acd81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modin/core/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ def is_local_path(path) -> bool:
if os.name == "nt" and parent_dir[:3] == "D:\\":
# In Windows, os.path.abspath(os.sep) will give us the C Drive, but we want the
# D drive to also be marked as local.
return True
local_device_id = os.stat(os.path.abspath(os.sep)).st_dev
local_device_id = os.stat("D:\\")

Check warning on line 58 in modin/core/io/utils.py

View check run for this annotation

Codecov / codecov/patch

modin/core/io/utils.py#L58

Added line #L58 was not covered by tests
else:
local_device_id = os.stat(os.path.abspath(os.sep)).st_dev
path_device_id = os.stat(parent_dir).st_dev
return path_device_id == local_device_id
return False
Expand Down

0 comments on commit a7acd81

Please sign in to comment.