@@ -79,7 +79,7 @@ def test_vamana_ingestion_u8(tmp_path):
7979
8080 assert vfs .dir_size (index_uri ) > 0
8181 Index .delete_index (uri = index_uri , config = {})
82- assert vfs .dir_size (index_uri ) == 0
82+ assert not vfs .is_dir (index_uri )
8383
8484
8585def test_flat_ingestion_u8 (tmp_path ):
@@ -376,7 +376,7 @@ def test_ingestion_fvec(tmp_path):
376376
377377 assert vfs .dir_size (index_uri ) > 0
378378 Index .delete_index (uri = index_uri , config = {})
379- assert vfs .dir_size (index_uri ) == 0
379+ assert not vfs .is_dir (index_uri )
380380
381381
382382def test_ingestion_numpy (tmp_path ):
@@ -430,7 +430,7 @@ def test_ingestion_numpy(tmp_path):
430430
431431 assert vfs .dir_size (index_uri ) > 0
432432 Index .delete_index (uri = index_uri , config = {})
433- assert vfs .dir_size (index_uri ) == 0
433+ assert not vfs .is_dir (index_uri )
434434
435435
436436def test_ingestion_numpy_i8 (tmp_path ):
@@ -486,7 +486,7 @@ def test_ingestion_numpy_i8(tmp_path):
486486
487487 assert vfs .dir_size (index_uri ) > 0
488488 Index .delete_index (uri = index_uri , config = {})
489- assert vfs .dir_size (index_uri ) == 0
489+ assert not vfs .is_dir (index_uri )
490490
491491
492492def test_ingestion_multiple_workers (tmp_path ):
@@ -541,7 +541,7 @@ def test_ingestion_multiple_workers(tmp_path):
541541
542542 assert vfs .dir_size (index_uri ) > 0
543543 Index .delete_index (uri = index_uri , config = {})
544- assert vfs .dir_size (index_uri ) == 0
544+ assert not vfs .is_dir (index_uri )
545545
546546
547547def test_ingestion_external_ids_numpy (tmp_path ):
@@ -590,7 +590,7 @@ def test_ingestion_external_ids_numpy(tmp_path):
590590
591591 assert vfs .dir_size (index_uri ) > 0
592592 Index .delete_index (uri = index_uri , config = {})
593- assert vfs .dir_size (index_uri ) == 0
593+ assert not vfs .is_dir (index_uri )
594594
595595
596596def test_ingestion_timetravel (tmp_path ):
@@ -935,7 +935,7 @@ def test_ingestion_with_updates(tmp_path):
935935
936936 assert vfs .dir_size (index_uri ) > 0
937937 Index .delete_index (uri = index_uri , config = {})
938- assert vfs .dir_size (index_uri ) == 0
938+ assert not vfs .is_dir (index_uri )
939939
940940
941941def test_ingestion_with_batch_updates (tmp_path ):
@@ -1003,7 +1003,7 @@ def test_ingestion_with_batch_updates(tmp_path):
10031003
10041004 assert vfs .dir_size (index_uri ) > 0
10051005 Index .delete_index (uri = index_uri , config = {})
1006- assert vfs .dir_size (index_uri ) == 0
1006+ assert not vfs .is_dir (index_uri )
10071007
10081008
10091009def test_ingestion_with_updates_and_timetravel (tmp_path ):
@@ -1277,7 +1277,7 @@ def test_ingestion_with_updates_and_timetravel(tmp_path):
12771277
12781278 assert vfs .dir_size (index_uri ) > 0
12791279 Index .delete_index (uri = index_uri , config = {})
1280- assert vfs .dir_size (index_uri ) == 0
1280+ assert not vfs .is_dir (index_uri )
12811281
12821282
12831283def test_ingestion_with_additions_and_timetravel (tmp_path ):
@@ -1335,7 +1335,7 @@ def test_ingestion_with_additions_and_timetravel(tmp_path):
13351335
13361336 assert vfs .dir_size (index_uri ) > 0
13371337 Index .delete_index (uri = index_uri , config = {})
1338- assert vfs .dir_size (index_uri ) == 0
1338+ assert not vfs .is_dir (index_uri )
13391339
13401340
13411341def test_ivf_flat_ingestion_tdb_random_sampling_policy (tmp_path ):
0 commit comments