Learn R Programming

lares (version 4.7)

listfiles: List files in a directory

Description

This function lets the user list all files on a given directory. It also lets filter files which contains a string.

Usage

listfiles(folder = getwd(), recursive = TRUE, regex = NA,
  images = FALSE, export = FALSE, dir = getwd())

Arguments

folder

Character. Directory which contains files

recursive

Boolean. Should the listing recurse into directories?

regex

Character. String to use for filtering files

images

Boolean. Bring only image files?

export

Boolean. Do you wish to export list as txt file?

dir

Character. In which directory do you wish to save the results? Working directory as default.

See Also

Other Tools: autoline, bindfiles, bring_api, db_download, db_upload, export_plot, export_results, get_credentials, get_currency, h2o_predict_API, h2o_predict_MOJO, h2o_predict_binary, h2o_predict_model, h2o_selectmodel, h2o_update, haveInternet, importxlsx, ip_country, iter_seeds, json2vector, mailSend, matrixwd, msplit, myip, pass, quiet, read.file, statusbar, try_require, updateLares, zerovar