move_file: Move files

View source: R/Utility_Functions.R

move_fileR Documentation

Move files

Description

Moves files to another location.

Usage

move_file(from, to, ...)

Arguments

from

Character vector, containing source file names or paths to be moved.

to

Character vector, containing destination file names or paths.

...

Arguments passed to 'file.copy'

Details

This function is a wrapper for both 'file.copy' and 'file.remove' that first copies the source file(s) to the destination, then removes them from their original location only if all source files were successfully copied.


sjpierce/piercer documentation built on Dec. 30, 2024, 3:28 p.m.