Skip to content

Commit c542b39

Browse files
prevent split files from being split again #1278
1 parent 0787078 commit c542b39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/splitRecords.R

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ splitRecords = function(metadatadir, params_general = NULL) {
88

99
# Create overview of all recordings ID, start time, end time, and filename
1010
fns = dir(paste0(metadatadir, "/meta/basic"), full.names = TRUE)
11+
fns = fns[grep(pattern = "_split", x = basename(fns), invert = TRUE)]
12+
if (length(fns) == 0) return()
1113
S = do.call("rbind", lapply(X = fns, FUN = getPart1BasicInfo, idloc = idloc, tz = desiredtz))
1214
#------------------------------------
1315
# Load recording split times file

0 commit comments

Comments
 (0)