Skip to content

Commit

Permalink
Update approach to use the new parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Jan 24, 2025
1 parent 9605d4e commit 1644000
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/Module-Characterization.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ CharacterizationModule <- R6::R6Class(
resultsFolder <- jobContext$moduleExecutionSettings$resultsSubFolder

# Handle cleaning of incremental folders/files
if (isTRUE(executionSettings$incremental)) {
Characterization::cleanIncremental(workFolder)
} else {
# 1) Always clean the incremental files
Characterization::cleanIncremental(
executionFolder = workFolder,
ignoreWhenEmpty = TRUE
)
# 2) If we're running in non-incremental mode,
# make sure the work folder is completely cleaned
if (isFALSE(executionSettings$incremental)) {
Characterization::cleanNonIncremental(workFolder)
}

Expand Down

0 comments on commit 1644000

Please sign in to comment.