R/path.goUpOneDir.R

Defines functions path.goUpOneDir

Documented in path.goUpOneDir

#' Return path up one directory
#'
#' @param p path
#' @return path with last directory removed
#' @examples
#' path.goUpOneDir('/Users/test/fish-100')
#' @export
path.goUpOneDir <- function(p) {
  gsub('(.*)(//?[^//]+)$','\\1',p)
}
thomasgredig/checkRAWfolder documentation built on Nov. 8, 2024, 4:17 a.m.