Learn R Programming

SeuratObject (version 5.0.2)

.FileMove: Move Files and Directories

Description

Move files and directories with fs; includes a handler for when path is a directory on a different filesystem than new_path by explicitly copying and deleting path

Usage

.FileMove(path, new_path, overwrite = FALSE, n = 1L)

Value

The new path (invisibly).

Arguments

path

A character vector of one or more paths.

new_path

New file path. If new_path is existing directory, the file will be moved into that directory; otherwise it will be moved/renamed to the full path.

Should either be the same length as path, or a single directory.

n

The number of callers to go back.

See Also