safeFileRename: rename files, even across filesystems

Description Usage Arguments Value Author(s)

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/motus-R-package documentation built on May 18, 2019, 7:03 p.m.