R/get.file.mod.date.R

Defines functions get.file.mod.date

#' Get the modification date for a file
#'
#' Parses the file.info for a file to get and return the modification date
#'
#' @param inPath A file path to be corrected
#'
#' @return the corrected path
#'
#' @export
#'

get.file.mod.date <- function(inPath){
  modDateTime <- as.character(file.info(inPath)$mtime)
  lModDate <-  strsplit(modDateTime, " ")
  strModDate = lModDate[[1]][1]
  strModDate
}
jrminter/rAnaLab documentation built on July 20, 2020, 4:09 a.m.