From 566fe31eba06a827dcd251d157ebdc7b5f247886 Mon Sep 17 00:00:00 2001 From: Ari Brown Date: Fri, 1 Dec 2023 07:58:41 -0500 Subject: [PATCH] FIX-#6778: Generalizes the check of whether something is a file Avoids the use of `os.path.isfile()` to use `self.fs.isfile()`. Signed-off-by: Ari Brown --- modin/core/io/column_stores/parquet_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modin/core/io/column_stores/parquet_dispatcher.py b/modin/core/io/column_stores/parquet_dispatcher.py index 294245e63f8..801474fef8b 100644 --- a/modin/core/io/column_stores/parquet_dispatcher.py +++ b/modin/core/io/column_stores/parquet_dispatcher.py @@ -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 = [