Skip to content

Commit

Permalink
Windows Path Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dtulga committed Oct 17, 2024
1 parent dd645f8 commit 75bda33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/datachain/lib/dc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import copy
import os
import os.path
import re
import sys
from collections.abc import Iterator, Sequence
from functools import wraps
from typing import (
Expand Down Expand Up @@ -1920,6 +1922,8 @@ def to_parquet(
from urllib.parse import urlparse

path = urlparse(path).path
if sys.platform == "win32":
path = os.path.normpath(path.lstrip("/"))

Check warning on line 1926 in src/datachain/lib/dc.py

View check run for this annotation

Codecov / codecov/patch

src/datachain/lib/dc.py#L1926

Added line #L1926 was not covered by tests

fsspec_fs = client.create_fs(**fs_kwargs)

Expand Down

0 comments on commit 75bda33

Please sign in to comment.