drive_move: drive_move

drive_moveR Documentation

drive_move

Description

a shallow wrapper for googledrive::drive_mv() that adds a parameter to leave behind a shortcut of the moved file

Usage

drive_move(
  from,
  to,
  name = NULL,
  shortcut_name = NULL,
  drop_shortcut = FALSE,
  make_public = FALSE,
  prompt_user = TRUE
)

Arguments

from

source item; a path fed into drive_find_path()

to

new location; a path fed into drive_find_path(); either target path or parent directory should exist

name

new name after move— passed to googledrive::drive_mv(); default =NULL

shortcut_name

basis of the shortcut name. e.g. if "teaching-materials" supplied, the shortcut will be called "teaching-materials Shortcut"; default=NULL means it will be the name derived from the original 'from' path + "Shortcut"

drop_shortcut

logical; if TRUE, will drop a shortcut to the moved file in the parent of the from directory; default=FALSE

make_public

after move; do you want this object to be viewable to anyone with the link? default=F

prompt_user

logical; adds a confirmation step before moving something; default = TRUE

Value

tibble of success, to and from paths and IDs To' dribble should be exactly 1 row


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.