Skip to content

Commit

Permalink
added comment for why we needs two paths
Browse files Browse the repository at this point in the history
  • Loading branch information
parthban-db committed Jun 12, 2024
1 parent bf00c9b commit 647de83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions databricks/sdk/mixins/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def __repr__(self) -> str:
class _Path(ABC):

def __init__(self, path: str):
"""Posix Path for API Compatibility in windows and OS Specific Path(System Path) for using pathlib.Path functions."""
self._path = pathlib.PurePosixPath(str(path).replace('dbfs:', '').replace('file:', ''))
self._system_path = pathlib.Path(self._path)

Expand Down

0 comments on commit 647de83

Please sign in to comment.