Skip to content

Commit

Permalink
Fix file path
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Dec 18, 2024
1 parent e488fff commit 9319fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/token-handlers.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,21 @@ cache_secrets_folder <- function() {
file_path <- list.files(
pattern = "cached-secrets",
recursive = TRUE,
tools::R_user_dir("metricminer", which = "cache"),
tools::R_user_dir("ottrpal", which = "cache"),
full.names = TRUE,
include.dirs = TRUE,
)

if (length(file_path) == 0) {
dir.create(file.path(
tools::R_user_dir("metricminer", which = "cache"),
tools::R_user_dir("ottrpal", which = "cache"),
"cached-secrets"
), recursive = TRUE, showWarnings = FALSE)
}
list.files(
pattern = "cached-secrets",
recursive = TRUE,
tools::R_user_dir("metricminer", which = "cache"),
tools::R_user_dir("ottrpal", which = "cache"),
full.names = TRUE,
include.dirs = TRUE,
)
Expand Down

0 comments on commit 9319fbe

Please sign in to comment.