Skip to content
Prev 68858 / 398506 Next

Windows List of Folders?

Example:

path <- system.file(package="base")
pathnames <- list.files(path, full.names=TRUE)
isDir <- file.info(pathnames)$isdir
dirs <- pathnames[isDir]
files <- pathnames[!isDir]

If you don't get the 'isDir' line, think of it as
infos <- file.info(pathnames)
isDir <- infos$isdir

/Henrik
khobson at fd9ns01.okladot.state.ok.us wrote: