safeFileRename: rename files, even across filesystems

Description Usage Arguments Value Author(s)

View source: R/safeFileRename.R

Description

drop-in replacement for file.rename that correctly handles renames across filesystems on linux - copies the file from filesystem A to filesystem B - only if the copy succeeded, delete the file from filesystem B

Usage

1
safeFileRename(from, to)

Arguments

from

character vector giving filename or path

to

character vector giving filename or path

Value

logical vector,rv, that is TRUE for each successful rename, FALSE elsewhere

Upon returning:

i.e. unsuccesful renaming leaves source and destination items as they were.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.