File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1870,9 +1870,14 @@ def _dataset_features_is_downloaded(did: int):
18701870
18711871def _dataset_data_file_is_downloaded (did : int ):
18721872 cache_directory = Path (openml .config .get_cache_directory ()) / "minio/datasets/0000/0001"
1873- TestBase .logger .info (f"Checking for data file in { cache_directory } " )
1874- TestBase .logger .info (f"Files in cache directory: { [f .name for f in (Path (openml .config .get_cache_directory ())/ 'minio' ).iterdir ()]} " )
1875- TestBase .logger .info (f"Files in cache directory: { [f .name for f in (Path (openml .config .get_cache_directory ())/ 'minio/datatsets' ).iterdir ()]} " )
1873+ directory = Path (directory )
1874+ if not directory .exists ():
1875+ TestBase .logger .info (f"Directory does not exist: { directory } " )
1876+ return
1877+ TestBase .logger .info (f"All files under { directory } :" )
1878+ for path in directory .rglob ("*" ):
1879+ if path .is_file ():
1880+ TestBase .logger .info (f" - { path } " )
18761881 if not cache_directory .exists ():
18771882 return False
18781883 return any (f .suffix in (".pq" , ".arff" ) for f in cache_directory .iterdir ())
You can’t perform that action at this time.
0 commit comments