filelist: filelist literally lists the files in a directory

View source: R/candidate_functions.r

filelistR Documentation

filelist literally lists the files in a directory

Description

filelist generate a data.frame of files in a directory including their properties - name, size, isdir, mdata and mtime, being the last modification data and time, adate and atime, being the last access dat and time. and finally a reference number to ease file selection. The option of searching for a text string within the complete filename is provided by the findtext argument.

Usage

filelist(indir, findtext = "", ignorecase = FALSE, silent = FALSE)

Arguments

indir

the directory whose contents are to be listed

findtext

a text string to be searched for, default=""

ignorecase

search on exact case or not, default=FALSE

silent

should no summary be sent to the console, default=FALSE

Value

a dataframe of filenames is returned and, if silent=TRUE, two lines of information are sent to the console

Examples

## Not run: 
  filelist(indir=getwd())
  filelist(indir=getwd(),findtext="txt",ignorecase=TRUE)

## End(Not run)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.