Skip to content

Commit

Permalink
chore(datasets): try os.path.exists, for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>
  • Loading branch information
deepyaman committed Sep 23, 2024
1 parent f45f408 commit b7ff0c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kedro-datasets/kedro_datasets/ibis/file_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Provide file loading and saving functionality for Ibis's backends."""
from __future__ import annotations

import os
from copy import deepcopy
from pathlib import Path, PurePosixPath
from typing import TYPE_CHECKING, Any, ClassVar
Expand Down Expand Up @@ -118,7 +119,7 @@ def __init__( # noqa: PLR0913
super().__init__(
filepath=PurePosixPath(filepath),
version=version,
exists_function=lambda filepath: Path(filepath).exists(),
exists_function=os.path.exists,
)

# Set load and save arguments, overwriting defaults if provided.
Expand Down

0 comments on commit b7ff0c7

Please sign in to comment.