Skip to content

Commit

Permalink
added recursive to FALSE: if sub-dir exist (i.e. plant dir) they are …
Browse files Browse the repository at this point in the history
…now not taken into account. (#14)
  • Loading branch information
plecharpent authored Jan 17, 2024
1 parent 7eca236 commit ccb00a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/run_system.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ run_system <- function(stics_exe,
}

if (!is.null(usm) && usm == "all") {
run_dir <- setdiff(list.dirs(run_dir, full.names = TRUE), run_dir)
run_dir <- setdiff(list.dirs(run_dir, full.names = TRUE, recursive = FALSE),
run_dir)
}

# testing id dirs exist
Expand Down

0 comments on commit ccb00a6

Please sign in to comment.