Skip to content

Commit

Permalink
FIX-modin-project#6778: Generalizes the check of whether something is…
Browse files Browse the repository at this point in the history
… a file

Avoids the use of `os.path.isfile()` to use `self.fs.isfile()`.

Signed-off-by: Ari Brown <[email protected]>
  • Loading branch information
seydar committed Dec 1, 2023
1 parent 941eb9f commit 566fe31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modin/core/io/column_stores/parquet_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def _get_fastparquet_files(self): # noqa: GL08
# However, we also need to support users passing in explicit files that
# don't necessarily have the `.parq` or `.parquet` extension -- if a user
# says that a file is parquet, then we should probably give it a shot.
if os.path.isfile(self.path):
if self.fs.isfile(self.path):
files = self.fs.find(self.path)
else:
files = [
Expand Down

0 comments on commit 566fe31

Please sign in to comment.