drop_exists: Checks to see if a file/folder exists on Dropbox

Description Usage Arguments Value Examples

View source: R/drop_file_ops.R

Description

Since many file operations such as move, copy, delete and history can only act on files that currently exist on a Dropbox store, checking to see if the path is valid before operating prevents bad API calls from being sent to the server. This functions returns a logical response after checking if a file path is valid on Dropbox.

Usage

1
drop_exists(path = NULL, dtoken = get_dropbox_token())

Arguments

path

The full path to a Dropbox file

dtoken

The Dropbox token generated by drop_auth. rdrop2 will try to automatically locate your local credential cache and use them. However, if the credentials are not found, the function will initiate a new authentication request. You can override this in drop_auth by pointing to a different location where your credentials are stored.

Value

boolean; TRUE is the file or folder exists, FALSE if it does not.

Examples

1
2
3
4
5
6
## Not run: 
  drop_create("existential_test")
  drop_exists("existential_test")
  drop_delete("existential_test")

## End(Not run)

rdrop2 documentation built on Aug. 5, 2020, 5:07 p.m.

Related to drop_exists in rdrop2...