Skip to contents

Copy a file to a destination if it does not exist there.

Usage

copy_if_not_exists(src, dest)

Arguments

src

The source file path.

dest

The destination file path.

Value

Returns TRUE if the file is copied, FALSE otherwise.

Examples

copy_if_not_exists("source.txt", "destination.txt")
#> [1] TRUE