add record existence checks in read_all

This commit is contained in:
2021-08-09 18:38:56 +02:00
parent 4dbf90127a
commit 1152115a0f
3 changed files with 26 additions and 9 deletions
+6
View File
@@ -18,3 +18,9 @@ check_directory <- function(path, create=F) {
stop("Directory exists, but is not writeable.")
}
}
# appends a file seperator at end of path if needed
make_directory_path <- function(path) {
if (!str_ends(path, .Platform$file.sep)) str_c(path, .Platform$file.sep)
else path
}