logFileNamesGetAll {WebAnalytics} | R Documentation |
Get the list of file names matching a regex (default picks .log files) from a list of log directories
Description
The function returns a list of names found in a list of directories.
Usage
logFileNamesGetAll(dataDirectory = getwd(),
directoryNames=c("."),
fileNamePattern=".*[.]log")
Arguments
dataDirectory |
a string containing the root directory under which the log file directories are found |
directoryNames |
a list of directory names that is concatenated with the data directory name. This is intended to support the structure where logs are collected into a series of per-server log directories. |
fileNamePattern |
a string containing a regular expression for the log file names that are to be processed |
Value
Returns a list of character string file names.
Author(s)
Greg Hunt <greg@firmansyah.com>
Examples
datd = dirname(system.file("extdata", "compressed.log", package = "WebAnalytics"))
logFileNamesGetAll(dataDirectory=datd,
directoryNames=c(".", "."),
fileNamePattern="*[.]log")
[Package WebAnalytics version 0.9.12 Index]