noctis.repository.neo4j.neo4j_functions._create_neo4j_import_path

noctis.repository.neo4j.neo4j_functions._create_neo4j_import_path(directory: str | Path, file_name: str) str[source]

Combines the directory and file name into an absolute file path and converts it into a file URI suitable for use in a Cypher LOAD CSV command.

Parameters:

directory (Union[str, Path]): The directory containing the file. file_name (str): The name of the file.

Returns:

str: The file URI that can be fed into a Cypher command.