dropbox_search: Search Dropbox files and folders.

Description Usage Arguments Value Examples

Description

If you are searching for a file/folder in the root directory, you can ignore the path. If searching for a file/folder in a specific location, then you should provide a full path to the object.

Usage

1
2
3
  dropbox_search(cred, query = NULL, deleted = FALSE,
    file_limit = 1000, is_dir = NULL, verbose = FALSE,
    curl = getCurlHandle(), ...)

Arguments

cred

An object of class DropboxCredentials with Dropobox specific credentials.

query

The search string. Must be at least three characters long.

deleted

If this parameter is set to true, then files and folders that have been deleted will also be included in the search.

file_limit

The maximum and default value is 1,000. No more than file_limit search results will be returned.

is_dir

logical, TRUE looks for directories only.

verbose

logical. Default is FALSE. Set to TRUE to get a full file listing.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

optional additional curl options (debugging tools mostly).

Value

data.frame with results. No results will return empty data.frame

Examples

1
2
3
4
5
6
7
8
## Not run: 
results<-dropbox_search(cred,'file or folder name')
results<-dropbox_search(cred,'/specific/path/file or folder name')
Returns a small data.frame with path and is_dir
results<-dropbox_search(cred,'search_term',verbose=T)
Verbose results include a data.frame with columns: revision,rev,thumb_exists,bytes,modified,path,is_dir,icon,root,mime_type,size

## End(Not run)

karthik/rDrop documentation built on May 20, 2019, 7:22 a.m.