neo4j_rmdir: Remove subdirectory and all its contents from the Neo4J...

neo4j_rmdirR Documentation

Remove subdirectory and all its contents from the Neo4J import directory

Description

Remove subdirectory and all its contents from the Neo4J import directory

Usage

neo4j_rmdir(
  local = FALSE,
  con = list(address = NULL, uid = NULL, pwd = NULL),
  dir = NULL,
  import_dir = "import"
)

Arguments

local

Logical indicating whether import is to a locally hosted or remotely hosted server.

con

If remotely hosted server, list containing three objects: address, uid, pwd as character strings providing connection to the Neo4J server. uid and pwd must be for an account on the server with appropriate permissions.

dir

Character string of the Neo4J import subdirectory name to be deleted.

import_dir

Character string of path to the Neo4J import directory.

Value

A success message if successful. A error message otherwise.

Examples

# remove a subdirectory and all its contents from the local import directory
fs::dir_create("import/data")
fs::file_create("import/data/data.csv")
neo4j_rmdir(local = TRUE, dir = "data", import_dir = "import")
fs::dir_delete("import")

neo4jshell documentation built on April 11, 2022, 5:08 p.m.