Learn R Programming

rdrop2 (version 0.6)

drop_dir: drop_dir

Description

Retrieves file and folder metadata.

Usage

drop_dir(path = NULL, file_limit = 10000, hash = NULL, list = TRUE,
  include_deleted = FALSE, rev = NULL, locale = NULL,
  include_media_info = TRUE, include_membership = FALSE, verbose = FALSE,
  dtoken = get_dropbox_token())

Arguments

path
This is required The path to the new folder to create relative to root.
file_limit
Default is 10000. (max is 25000). When listing a folder, the service won't report listings containing more than the specified amount of files and will instead respond with a 406 (Not Acceptable) status response.
hash
Each call to /metadata on a folder will return a hash field, generated by hashing all of the metadata contained in that response. On later calls to /metadata, you should provide that value via this parameter so that if nothing has changed, the response wi
list
The strings true and false are valid values. true is the default. If true, the folder's metadata will include a contents field with a list of metadata entries for the contents of the folder. If false, the contents field will be omitted.
include_deleted
Only applicable when list is set. If this parameter is set to true, then contents will include the metadata of deleted children. Note that the target of the metadata call is always returned even when it has been deleted (with is_deleted set to true) regar
rev
If you include a particular revision number, then only the metadata for that revision will be returned.
locale
Dropbox uses the locale parameter to specify language settings of content responses. If your app supports any language other than English, insert the appropriate IETF language tag. When a supported language is specified, Dropbox will returned translated s
include_media_info
If true, each file will include a photo_info dictionary for photos and a video_info dictionary for videos with additional media info. If the data isn't available yet, the string pending will be returned instead of a dictionary.
include_membership
If true, metadata for a shared folder will include a list of members and a list of groups.
verbose
By default verbose output is FALSE. Set to TRUE if you need to troubleshoot any output or grab additional parameters.
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 auth

Details

A sample output for contents returns the following fields: size, rev, thumb_exists, bytes, modified, client_mtime, path, is_dir, icon, root, mime_type, revision. Note that with verbose set to FALSE you only get a subset of these fields. To get the full output, look in drop_dir()$contents

Examples

Run this code
drop_dir()

Run the code above in your browser using DataLab