First check if a directory exists. If it does, return TRUE
, otherwise
create it with dir.create
(recursive = TRUE)
by default.
dir_create(x, recursive = TRUE, ...)
A logical value indicating if the directory either exists or is successfully created.
A path name.
Whether to create all directory components in the path.
Other arguments to be passed to dir.create()
.