filesstrings (version 0.3.2)

MoveFiles: Move files around.

Description

Move specified files into specified directories.

Usage

MoveFiles(files, destinations)

Arguments

files
A character vector of files to move (relative or absolute paths).
destinations
A character vector of the destination directories into which to move the files.

Value

A logical vector with a TRUE for each time the operation succeeded and a FALSE for every fail.

Details

If there are \(n\) files, there must be either \(1\) or \(n\) directories. If there is one directory, then all \(n\) files are moved there. If there are \(n\) directories, then each file is put into its respective directory. This function also works for directories.