% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse_logfiles.R \name{leftpad_fnames} \alias{leftpad_fnames} \title{Left padding file names of raw log files from Multi-Touch-Table at the IWM.} \usage{ leftpad_fnames(x, dirpaths) } \arguments{ \item{x}{file name in the form of `yyyy_mm_dd-hh_mm_ss.} \item{dirpaths}{Paths on system where files live that should be renamed.} } \value{ Left padded file names. } \description{ File names need to be left padded since otherwise the sorting of the timestamps will be off and one will get negative durations later on since the wrong events get closed. } \examples{ # folders <- "all" # dirpaths <- paste0("../data/haum_logs_2016-2023/", folders) # fnames <- dir(dirpaths, pattern = "*.log", full.names = TRUE) # leftpad_fnames(fnames) }