drive_copy_missing_files: drive_copy_missing_files()

View source: R/drive_copy_missing_files.R

drive_copy_missing_filesR Documentation

drive_copy_missing_files()

Description

Copy files missing AND folders from one Google Drive (web) folder to another

Usage

drive_copy_missing_files(
  from_dir,
  to_dir,
  ignore = c(".git", ".github", ".Rproj.user", ".RData", ".Rhistory"),
  prompt_user = TRUE,
  try_harder = TRUE,
  share_anyone = FALSE,
  ...
)

Arguments

from_dir

Source directory path

to_dir

What's the path to the new (clone) directory? Must be a string path for drive_find_path() or a dribble, e.g. from googledrive::drive_find() e.g. "Edu/Lessons/GeneticRescue_sci"

ignore

Folders to ignore; default= c(".git", ".github", ".Rproj.user",".RData",".Rhistory")

prompt_user

prompt user to continue? default=T; set to F for recursive calls

try_harder

do you want copy functions to try again if copying fails? Passed to catch_err(); default=T

share_anyone

do you want copied files to be viewable by anyone with the link? Default=FALSE

...

Pass other parameters to googledrive::drive_cp()

Details

Helps with a partial project clone (i.e. if not all files are backed up on GitHub, but they are on GDrive). Makes use of our function drive_cp_dir() to copy folders.

Value

Dribble of the cloned folder

See Also

Other Google Drive Functions: drive_contents(), drive_cp_dir(), drive_find_path(), drive_get_info(), drive_inSync(), drive_new_from_template(), drive_open(), init_lesson_meta(), update_teach_links()


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