dot-FileMove: Move Files and Directories

.FileMoveR Documentation

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)

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.

Value

The new path (invisibly).

Note

This function requires the fs package to be installed

See Also

fs::file_move()


SeuratObject documentation built on May 29, 2024, 12:31 p.m.