R/moveFiles.R

Defines functions moveFiles

Documented in moveFiles

#' Move files/folders to a folder
#'
#' @param src character vector; paths to source files / folders
#'
#' @param dst character scalar; path to target folder
#'
#' @return a boolean vector of the same length as \code{src}, with
#'     TRUE entries corresponding to files/folders moved successfully.
#'
#' @export
#'
#' @author John Brzustowski \email{jbrzusto@@REMOVE_THIS_PART_fastmail.fm}

moveFiles = function(src, dst) {
    file.rename(src, file.path(dst, basename(src)))
}
MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.