Have a folder with sub folders and with various source code files withing those sub folders like .CSS, .java etc. Is it possible to list all these source code files into a table format with two columns(path and filename)
all_files<-list.files(pattern = "*.*", recursive = TRUE)
is not working. I tried other functions like lapply
cant seem to catch a break.
fils <- list.files("thedir", recursive = TRUE)
data.frame(
path = dirname(fils),
file = basename(fils),
stringsAsFactors = FALSE
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments