Skip to contents

returns a list of files provided the search criteria

Usage

raw.findFiles(
  pfad,
  project = "[^_]+",
  date = "[^_]+",
  user = "[^_]+",
  instrument = "[^_]+",
  sample = "[^_]+",
  md5 = "",
  fullPath = TRUE,
  recursive = FALSE
)

Arguments

pfad

path of RAW files

project

name of project

date

date in format YYYYMMDD

user

2 initials for user

instrument

name of instrument, such as 'vsm'

sample

sample name

md5

single string with comma separated abbreviated MD5 sums

fullPath

if TRUE, returns full path, otherwise filename only

recursive

if TRUE, also searchs subfolders

Value

list with filenames with certain checksum

Examples

pfad = raw.getSamplePath()
file.list = raw.findFiles(pfad, date='201606')  # all files from June 2019
print(basename(file.list))
#> [1] "20160607_Optical_AN_Spectrophotometer_NM20151109CuPc100gl150-A2(UDS).txt"
md5String = raw.getMD5str(file.list)
file.list = raw.findFiles(pfad, md5 = md5String)
print(basename(file.list))
#> [1] "20141215_FePc_TG_vsm_Tb33Al66_20141215-Tb33Al66-ac1Oe-20Hz.txt"          
#> [2] "20160607_Optical_AN_Spectrophotometer_NM20151109CuPc100gl150-A2(UDS).txt"