From d4b00115b0b970b16af56f63b06cb20827695659 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 12 Jun 2024 19:58:20 +0300 Subject: Move the generated xapian files to the correct directory. Signed-off-by: Munyoki Kilyungi --- scripts/index-genenetwork | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/index-genenetwork') diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork index 3820044..cccbe68 100755 --- a/scripts/index-genenetwork +++ b/scripts/index-genenetwork @@ -519,7 +519,7 @@ def create_xapian_index(xapian_directory: str, sql_uri: str, logging.info("Writing generif checksums into index") db.set_metadata("generif-checksum", hash_generif_graph(sparql_uri).encode()) for child in combined_index.iterdir(): - shutil.move(child, pathlib.Path(xapian_directory) / child.name) + shutil.move(child, xapian_directory) logging.info("Index built") end_time = time.perf_counter() index_time = datetime.timedelta(seconds=end_time - start_time) -- cgit v1.2.3