drive_inSync: drive_inSync

drive_inSyncR Documentation

drive_inSync

Description

Check if two Google Drive objects exist, and whether path 1 (the most derived file) is the same age or newer than path 2- path n (which are used to create path 1). A way of thinking about it is, we're asking is path 1 newer than path 2? If not, return FALSE.

Usage

drive_inSync(path1, path2)

Arguments

path1

path to file of interest (e.g. that we expect to be newer than path 1, e.g. if it is created from the other paths)

  • paths are resolved by drive_find_path()

path2

path to reference file (expected to be at least slightly older than path 1)

Value

logical; TRUE if path2>=path1 in age, within one second; otherwise FALSE

See Also

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


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