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.
drop_exists(path = NULL, dtoken = get_dropbox_token())
The full path to a Dropbox file
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.
boolean; TRUE is the file or folder exists, FALSE if it does not.
# NOT RUN {
drop_create("existential_test")
drop_exists("existential_test")
drop_delete("existential_test")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab