drive_reveal() adds extra information about your Drive files that is not readily available in the default dribble produced by googledrive. Why is this info not always included in the default dribble?

  • You don't always care about it. There is a lot of esoteric information in the drive_resource that has little value for most users.

  • It might be "expensive" to get this information and put it into a usable form. For example, revealing a file's "path", "permissions", or "published" status all require additional API calls.

drive_reveal() can also hoist any property out of the drive_resource list-column, when the property's name is passed as the what argument. The resulting new column is simplified if it is easy to do so, e.g., if the individual elements are all string or logical. If what extracts a date-time, we return POSIXct. Otherwise, you'll get a list-column. If this makes you sad, consider using tidyr::hoist() instead. It is more powerful due to a richer "plucking specification" and its ptype and transform arguments. Another useful function is tidyr::unnest_wider().

drive_reveal(file, what = c("path", "permissions", "published", "parent"))

Arguments

file

Something that identifies the file(s) of interest on your Google Drive. Can be a character vector of names/paths, a character vector of file ids or URLs marked with as_id(), or a dribble.

what

Character, describing the type of info you want to add. These values get special handling (more details below):

  • path

  • permissions

  • published

  • parent

You can also request any property in the drive_resource column by name. The request can be in camelCase or snake_case, but the new column name will always be snake_case. Some examples of what:

  • mime_type (or mimeType)

  • trashed

  • starred

  • description

  • version

  • web_view_link (or webViewLink)

  • modified_time (or modifiedTime)

  • created_time (or createdTime)

  • owned_by_me (or ownedByMe)

  • size

  • quota_bytes_used (or quotaBytesUsed)

Value

An object of class dribble, a tibble with one row per file. The additional info requested via what appears in one (or more) extra columns.

File path

When what = "path" the dribble gains a character column holding each file's path. This can be very slow, so use with caution.

The example path ~/a/b/ illustrates two conventions used in googledrive:

  • The leading ~/ means that the folder a is located in the current user's "My Drive" root folder.

  • The trailing / means that b, located in a, is a folder or a folder shortcut.

Permissions

When what = "permissions" the dribble gains a logical column shared that indicates whether a file is shared and a new list-column permissions_resource containing lists of Permissions resources.

Publishing

When what = "published" the dribble gains a logical column published that indicates whether a file is published and a new list-column revision_resource containing lists of Revisions resources.

Parent

When what = "parent" the dribble gains a character column id_parent that is the file id of this item's parent folder. This information is available in the drive_resource, but can't just be hoisted out:

  • Google Drive used to allow files to have multiple parents, but this is no longer supported and googledrive now assumes this is impossible. However, we have seen (very old) files that still have >1 parent folder. If we see this we message about it and drop all but the first parent.

  • The parents property in drive_resource has an "extra" layer of nesting and needs to be flattened.

If you really want the raw parents property, call drive_reveal(what = "parents").

See also

To learn more about the properties present in the metadata of a Drive file (which is what's in the drive_resource list-column of a dribble), see the API docs:

Examples

# Get a few of your files
files <- drive_find(n_max = 10, trashed = NA)

# the "special" cases that require additional API calls and can be slow
drive_reveal(files, "path")
#> # A dribble: 10 x 4
#>    name          path            id                              drive_resource 
#>  * <chr>         <chr>           <chr>                           <list>         
#>  1 name-squatter ~/name-squatter 1NCL3jrLh7k7_urm7B37bs6ocR7AKY… <named list [3
#>  2 name-squatter ~/name-squatter 1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-… <named list [3
#>  3 chicken-cp.t… ~/chicken-cp.t… 1ovifpYABCNywxJhLyrgiC3puXmMKs… <named list [3
#>  4 drive-quiet-… ~/drive-quiet-… 19oTupvbrCixrdStAXA1sQyFSq-mcY… <named list [3
#>  5 name-squatter ~/name-squatter 1p_LpanfGMLyYwLhUuaFhjQEDCsH8Y… <named list [3
#>  6 name-squatter ~/name-squatter 1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAd… <named list [3
#>  7 name-squatter ~/name-squatter 1OK3AA4hYbyiKc15p0-2Np3LZfG8TQ… <named list [3
#>  8 chicken-cp.t… ~/chicken-cp.t… 1iNKfuNJxoqWGigjVGMCiEp-Y4Vepp… <named list [3
#>  9 drive-quiet-… ~/drive-quiet-… 1E4EOu9q9q-PcUPwXdSrcx8orM7PLy… <named list [3
#> 10 name-squatter ~/name-squatter 1aZGI1awxc72dVci7sNoYRACreQiCL… <named list [3
drive_reveal(files, "permissions")
#> # A dribble: 10 x 5
#>    name        shared id                       drive_resource  permissions_reso…
#>  * <chr>       <lgl>  <chr>                    <list>          <list>           
#>  1 name-squat… FALSE  1NCL3jrLh7k7_urm7B37bs6… <named list [3<named list [2]> 
#>  2 name-squat… FALSE  1Ytqq0Z_TshNC1wOYo6rJDa… <named list [3<named list [2]> 
#>  3 chicken-cp… FALSE  1ovifpYABCNywxJhLyrgiC3… <named list [3<named list [2]> 
#>  4 drive-quie… FALSE  19oTupvbrCixrdStAXA1sQy… <named list [3<named list [2]> 
#>  5 name-squat… FALSE  1p_LpanfGMLyYwLhUuaFhjQ… <named list [3<named list [2]> 
#>  6 name-squat… FALSE  1O1mEjnq6RqoDXy8Q4_0z6D… <named list [3<named list [2]> 
#>  7 name-squat… FALSE  1OK3AA4hYbyiKc15p0-2Np3… <named list [3<named list [2]> 
#>  8 chicken-cp… FALSE  1iNKfuNJxoqWGigjVGMCiEp… <named list [3<named list [2]> 
#>  9 drive-quie… FALSE  1E4EOu9q9q-PcUPwXdSrcx8… <named list [3<named list [2]> 
#> 10 name-squat… FALSE  1aZGI1awxc72dVci7sNoYRA… <named list [3<named list [2]> 
drive_reveal(files, "published")
#> # A dribble: 10 x 5
#>    name        published id                     drive_resource  revision_resour…
#>  * <chr>       <lgl>     <chr>                  <list>          <list>          
#>  1 name-squat… FALSE     1NCL3jrLh7k7_urm7B37b… <named list [3<named list [9]>
#>  2 name-squat… FALSE     1Ytqq0Z_TshNC1wOYo6rJ… <named list [3<named list [9]>
#>  3 chicken-cp… FALSE     1ovifpYABCNywxJhLyrgi… <named list [3<named list [10
#>  4 drive-quie… FALSE     19oTupvbrCixrdStAXA1s… <named list [3<named list [7]>
#>  5 name-squat… FALSE     1p_LpanfGMLyYwLhUuaFh… <named list [3<named list [9]>
#>  6 name-squat… FALSE     1O1mEjnq6RqoDXy8Q4_0z… <named list [3<named list [9]>
#>  7 name-squat… FALSE     1OK3AA4hYbyiKc15p0-2N… <named list [3<named list [9]>
#>  8 chicken-cp… FALSE     1iNKfuNJxoqWGigjVGMCi… <named list [3<named list [10
#>  9 drive-quie… FALSE     1E4EOu9q9q-PcUPwXdSrc… <named list [3<named list [7]>
#> 10 name-squat… FALSE     1aZGI1awxc72dVci7sNoY… <named list [3<named list [9]>

# a "special" case of digging info out of `drive_resource`, then processing
# a bit
drive_reveal(files, "parent")
#> # A dribble: 10 x 4
#>    name          id_parent        id                             drive_resource 
#>    <chr>         <chr>            <chr>                          <list>         
#>  1 name-squatter 0AO_RMaBzcP63Uk… 1NCL3jrLh7k7_urm7B37bs6ocR7AK… <named list [3
#>  2 name-squatter 0AO_RMaBzcP63Uk… 1Ytqq0Z_TshNC1wOYo6rJDaga87Ml… <named list [3
#>  3 chicken-cp.t… 0AO_RMaBzcP63Uk… 1ovifpYABCNywxJhLyrgiC3puXmMK… <named list [3
#>  4 drive-quiet-… 0AO_RMaBzcP63Uk… 19oTupvbrCixrdStAXA1sQyFSq-mc… <named list [3
#>  5 name-squatter 0AO_RMaBzcP63Uk… 1p_LpanfGMLyYwLhUuaFhjQEDCsH8… <named list [3
#>  6 name-squatter 0AO_RMaBzcP63Uk… 1O1mEjnq6RqoDXy8Q4_0z6DoK6AfA… <named list [3
#>  7 name-squatter 0AO_RMaBzcP63Uk… 1OK3AA4hYbyiKc15p0-2Np3LZfG8T… <named list [3
#>  8 chicken-cp.t… 0AO_RMaBzcP63Uk… 1iNKfuNJxoqWGigjVGMCiEp-Y4Vep… <named list [3
#>  9 drive-quiet-… 0AO_RMaBzcP63Uk… 1E4EOu9q9q-PcUPwXdSrcx8orM7PL… <named list [3
#> 10 name-squatter 0AO_RMaBzcP63Uk… 1aZGI1awxc72dVci7sNoYRACreQiC… <named list [3

# the "simple" cases of digging info out of `drive_resource`
drive_reveal(files, "trashed")
#> # A dribble: 10 x 4
#>    name            trashed id                                   drive_resource  
#>  * <chr>           <lgl>   <chr>                                <list>          
#>  1 name-squatter   TRUE    1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq    <named list [38
#>  2 name-squatter   TRUE    1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf    <named list [38
#>  3 chicken-cp.txt  TRUE    1ovifpYABCNywxJhLyrgiC3puXmMKsxbb    <named list [39
#>  4 drive-quiet-wo… TRUE    19oTupvbrCixrdStAXA1sQyFSq-mcYbdKyi… <named list [34
#>  5 name-squatter   TRUE    1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX    <named list [38
#>  6 name-squatter   TRUE    1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu    <named list [38
#>  7 name-squatter   TRUE    1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu    <named list [38
#>  8 chicken-cp.txt  TRUE    1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7    <named list [39
#>  9 drive-quiet-wo… TRUE    1E4EOu9q9q-PcUPwXdSrcx8orM7PLy396HN… <named list [34
#> 10 name-squatter   TRUE    1aZGI1awxc72dVci7sNoYRACreQiCLIRr    <named list [38
drive_reveal(files, "mime_type")
#> # A dribble: 10 x 4
#>    name         mime_type               id                       drive_resource 
#>  * <chr>        <chr>                   <chr>                    <list>         
#>  1 name-squatt… application/octet-stre… 1NCL3jrLh7k7_urm7B37bs6… <named list [3
#>  2 name-squatt… application/octet-stre… 1Ytqq0Z_TshNC1wOYo6rJDa… <named list [3
#>  3 chicken-cp.… text/plain              1ovifpYABCNywxJhLyrgiC3… <named list [3
#>  4 drive-quiet… application/vnd.google… 19oTupvbrCixrdStAXA1sQy… <named list [3
#>  5 name-squatt… application/octet-stre… 1p_LpanfGMLyYwLhUuaFhjQ… <named list [3
#>  6 name-squatt… application/octet-stre… 1O1mEjnq6RqoDXy8Q4_0z6D… <named list [3
#>  7 name-squatt… application/octet-stre… 1OK3AA4hYbyiKc15p0-2Np3… <named list [3
#>  8 chicken-cp.… text/plain              1iNKfuNJxoqWGigjVGMCiEp… <named list [3
#>  9 drive-quiet… application/vnd.google… 1E4EOu9q9q-PcUPwXdSrcx8… <named list [3
#> 10 name-squatt… application/octet-stre… 1aZGI1awxc72dVci7sNoYRA… <named list [3
drive_reveal(files, "starred")
#> # A dribble: 10 x 4
#>    name            starred id                                   drive_resource  
#>  * <chr>           <lgl>   <chr>                                <list>          
#>  1 name-squatter   FALSE   1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq    <named list [38
#>  2 name-squatter   FALSE   1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf    <named list [38
#>  3 chicken-cp.txt  FALSE   1ovifpYABCNywxJhLyrgiC3puXmMKsxbb    <named list [39
#>  4 drive-quiet-wo… FALSE   19oTupvbrCixrdStAXA1sQyFSq-mcYbdKyi… <named list [34
#>  5 name-squatter   FALSE   1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX    <named list [38
#>  6 name-squatter   FALSE   1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu    <named list [38
#>  7 name-squatter   FALSE   1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu    <named list [38
#>  8 chicken-cp.txt  FALSE   1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7    <named list [39
#>  9 drive-quiet-wo… FALSE   1E4EOu9q9q-PcUPwXdSrcx8orM7PLy396HN… <named list [34
#> 10 name-squatter   FALSE   1aZGI1awxc72dVci7sNoYRACreQiCLIRr    <named list [38
drive_reveal(files, "description")
#> # A dribble: 10 x 4
#>    name           description id                                drive_resource  
#>  * <chr>          <list>      <chr>                             <list>          
#>  1 name-squatter  <NULL>      1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq <named list [38
#>  2 name-squatter  <NULL>      1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf <named list [38
#>  3 chicken-cp.txt <NULL>      1ovifpYABCNywxJhLyrgiC3puXmMKsxbb <named list [39
#>  4 drive-quiet-w… <NULL>      19oTupvbrCixrdStAXA1sQyFSq-mcYbd… <named list [34
#>  5 name-squatter  <NULL>      1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX <named list [38
#>  6 name-squatter  <NULL>      1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu <named list [38
#>  7 name-squatter  <NULL>      1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu <named list [38
#>  8 chicken-cp.txt <NULL>      1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7 <named list [39
#>  9 drive-quiet-w… <NULL>      1E4EOu9q9q-PcUPwXdSrcx8orM7PLy39… <named list [34
#> 10 name-squatter  <NULL>      1aZGI1awxc72dVci7sNoYRACreQiCLIRr <named list [38
drive_reveal(files, "version")
#> # A dribble: 10 x 4
#>    name            version id                                   drive_resource  
#>  * <chr>           <chr>   <chr>                                <list>          
#>  1 name-squatter   2       1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq    <named list [38
#>  2 name-squatter   2       1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf    <named list [38
#>  3 chicken-cp.txt  3       1ovifpYABCNywxJhLyrgiC3puXmMKsxbb    <named list [39
#>  4 drive-quiet-wo… 10      19oTupvbrCixrdStAXA1sQyFSq-mcYbdKyi… <named list [34
#>  5 name-squatter   2       1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX    <named list [38
#>  6 name-squatter   2       1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu    <named list [38
#>  7 name-squatter   2       1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu    <named list [38
#>  8 chicken-cp.txt  3       1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7    <named list [39
#>  9 drive-quiet-wo… 10      1E4EOu9q9q-PcUPwXdSrcx8orM7PLy396HN… <named list [34
#> 10 name-squatter   2       1aZGI1awxc72dVci7sNoYRACreQiCLIRr    <named list [38
drive_reveal(files, "web_view_link")
#> # A dribble: 10 x 4
#>    name      web_view_link                      id                drive_resource
#>  * <chr>     <chr>                              <chr>             <list>        
#>  1 name-squ… https://drive.google.com/file/d/1… 1NCL3jrLh7k7_urm… <named list [
#>  2 name-squ… https://drive.google.com/file/d/1… 1Ytqq0Z_TshNC1wO… <named list [
#>  3 chicken-… https://drive.google.com/file/d/1… 1ovifpYABCNywxJh… <named list [
#>  4 drive-qu… https://docs.google.com/document/… 19oTupvbrCixrdSt… <named list [
#>  5 name-squ… https://drive.google.com/file/d/1… 1p_LpanfGMLyYwLh… <named list [
#>  6 name-squ… https://drive.google.com/file/d/1… 1O1mEjnq6RqoDXy8… <named list [
#>  7 name-squ… https://drive.google.com/file/d/1… 1OK3AA4hYbyiKc15… <named list [
#>  8 chicken-… https://drive.google.com/file/d/1… 1iNKfuNJxoqWGigj… <named list [
#>  9 drive-qu… https://docs.google.com/document/… 1E4EOu9q9q-PcUPw… <named list [
#> 10 name-squ… https://drive.google.com/file/d/1… 1aZGI1awxc72dVci… <named list [
drive_reveal(files, "modified_time")
#> # A dribble: 10 x 4
#>    name         modified_time       id                           drive_resource 
#>    <chr>        <dttm>              <chr>                        <list>         
#>  1 name-squatt… 2021-06-12 13:50:43 1NCL3jrLh7k7_urm7B37bs6ocR7… <named list [3
#>  2 name-squatt… 2021-06-12 13:50:30 1Ytqq0Z_TshNC1wOYo6rJDaga87… <named list [3
#>  3 chicken-cp.… 2021-06-12 13:49:45 1ovifpYABCNywxJhLyrgiC3puXm… <named list [3
#>  4 drive-quiet… 2021-06-11 13:52:54 19oTupvbrCixrdStAXA1sQyFSq-… <named list [3
#>  5 name-squatt… 2021-06-11 13:52:46 1p_LpanfGMLyYwLhUuaFhjQEDCs… <named list [3
#>  6 name-squatt… 2021-06-11 13:52:09 1O1mEjnq6RqoDXy8Q4_0z6DoK6A… <named list [3
#>  7 name-squatt… 2021-06-11 13:51:54 1OK3AA4hYbyiKc15p0-2Np3LZfG… <named list [3
#>  8 chicken-cp.… 2021-06-11 13:51:02 1iNKfuNJxoqWGigjVGMCiEp-Y4V… <named list [3
#>  9 drive-quiet… 2021-06-10 14:01:34 1E4EOu9q9q-PcUPwXdSrcx8orM7… <named list [3
#> 10 name-squatt… 2021-06-10 14:01:26 1aZGI1awxc72dVci7sNoYRACreQ… <named list [3
drive_reveal(files, "created_time")
#> # A dribble: 10 x 4
#>    name         created_time        id                           drive_resource 
#>    <chr>        <dttm>              <chr>                        <list>         
#>  1 name-squatt… 2021-06-12 13:50:43 1NCL3jrLh7k7_urm7B37bs6ocR7… <named list [3
#>  2 name-squatt… 2021-06-12 13:50:30 1Ytqq0Z_TshNC1wOYo6rJDaga87… <named list [3
#>  3 chicken-cp.… 2021-06-12 13:49:45 1ovifpYABCNywxJhLyrgiC3puXm… <named list [3
#>  4 drive-quiet… 2021-06-11 13:52:51 19oTupvbrCixrdStAXA1sQyFSq-… <named list [3
#>  5 name-squatt… 2021-06-11 13:52:46 1p_LpanfGMLyYwLhUuaFhjQEDCs… <named list [3
#>  6 name-squatt… 2021-06-11 13:52:09 1O1mEjnq6RqoDXy8Q4_0z6DoK6A… <named list [3
#>  7 name-squatt… 2021-06-11 13:51:54 1OK3AA4hYbyiKc15p0-2Np3LZfG… <named list [3
#>  8 chicken-cp.… 2021-06-11 13:51:02 1iNKfuNJxoqWGigjVGMCiEp-Y4V… <named list [3
#>  9 drive-quiet… 2021-06-10 14:01:31 1E4EOu9q9q-PcUPwXdSrcx8orM7… <named list [3
#> 10 name-squatt… 2021-06-10 14:01:26 1aZGI1awxc72dVci7sNoYRACreQ… <named list [3
drive_reveal(files, "owned_by_me")
#> # A dribble: 10 x 4
#>    name           owned_by_me id                                drive_resource  
#>  * <chr>          <lgl>       <chr>                             <list>          
#>  1 name-squatter  TRUE        1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq <named list [38
#>  2 name-squatter  TRUE        1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf <named list [38
#>  3 chicken-cp.txt TRUE        1ovifpYABCNywxJhLyrgiC3puXmMKsxbb <named list [39
#>  4 drive-quiet-w… TRUE        19oTupvbrCixrdStAXA1sQyFSq-mcYbd… <named list [34
#>  5 name-squatter  TRUE        1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX <named list [38
#>  6 name-squatter  TRUE        1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu <named list [38
#>  7 name-squatter  TRUE        1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu <named list [38
#>  8 chicken-cp.txt TRUE        1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7 <named list [39
#>  9 drive-quiet-w… TRUE        1E4EOu9q9q-PcUPwXdSrcx8orM7PLy39… <named list [34
#> 10 name-squatter  TRUE        1aZGI1awxc72dVci7sNoYRACreQiCLIRr <named list [38
drive_reveal(files, "size")
#> # A dribble: 10 x 4
#>    name            size  id                                     drive_resource  
#>  * <chr>           <chr> <chr>                                  <list>          
#>  1 name-squatter   0     1NCL3jrLh7k7_urm7B37bs6ocR7AKYnrq      <named list [38
#>  2 name-squatter   0     1Ytqq0Z_TshNC1wOYo6rJDaga87Ml-wzf      <named list [38
#>  3 chicken-cp.txt  165   1ovifpYABCNywxJhLyrgiC3puXmMKsxbb      <named list [39
#>  4 drive-quiet-wo… NA    19oTupvbrCixrdStAXA1sQyFSq-mcYbdKyi7j… <named list [34
#>  5 name-squatter   0     1p_LpanfGMLyYwLhUuaFhjQEDCsH8YqpX      <named list [38
#>  6 name-squatter   0     1O1mEjnq6RqoDXy8Q4_0z6DoK6AfAdaJu      <named list [38
#>  7 name-squatter   0     1OK3AA4hYbyiKc15p0-2Np3LZfG8TQihu      <named list [38
#>  8 chicken-cp.txt  165   1iNKfuNJxoqWGigjVGMCiEp-Y4Vepput7      <named list [39
#>  9 drive-quiet-wo… NA    1E4EOu9q9q-PcUPwXdSrcx8orM7PLy396HNPS… <named list [34
#> 10 name-squatter   0     1aZGI1awxc72dVci7sNoYRACreQiCLIRr      <named list [38
drive_reveal(files, "quota_bytes_used")
#> # A dribble: 10 x 4
#>    name          quota_bytes_used id                             drive_resource 
#>  * <chr>         <chr>            <chr>                          <list>         
#>  1 name-squatter 0                1NCL3jrLh7k7_urm7B37bs6ocR7AK… <named list [3
#>  2 name-squatter 0                1Ytqq0Z_TshNC1wOYo6rJDaga87Ml… <named list [3
#>  3 chicken-cp.t… 165              1ovifpYABCNywxJhLyrgiC3puXmMK… <named list [3
#>  4 drive-quiet-… 0                19oTupvbrCixrdStAXA1sQyFSq-mc… <named list [3
#>  5 name-squatter 0                1p_LpanfGMLyYwLhUuaFhjQEDCsH8… <named list [3
#>  6 name-squatter 0                1O1mEjnq6RqoDXy8Q4_0z6DoK6AfA… <named list [3
#>  7 name-squatter 0                1OK3AA4hYbyiKc15p0-2Np3LZfG8T… <named list [3
#>  8 chicken-cp.t… 165              1iNKfuNJxoqWGigjVGMCiEp-Y4Vep… <named list [3
#>  9 drive-quiet-… 0                1E4EOu9q9q-PcUPwXdSrcx8orM7PL… <named list [3
#> 10 name-squatter 0                1aZGI1awxc72dVci7sNoYRACreQiC… <named list [3

# 'root' is a special file id that represents your My Drive root folder
drive_get(id = "root") %>%
  drive_reveal("path")
#> # A dribble: 1 x 4
#>   name     path  id                  drive_resource   
#> * <chr>    <chr> <chr>               <list>           
#> 1 My Drive ~/    0AO_RMaBzcP63Uk9PVA <named list [30]>