Unpack a Gobbler path to its combination of project, asset, version, and (optionally) path, for easier use in the various gobbler functions.
unpackPath(path)
List containing project
, asset
, version
and path
.
All are strings, except for path
, which may be NULL
.
unpackPath("project/asset/version/path")
#> $project
#> [1] "project"
#>
#> $asset
#> [1] "asset"
#>
#> $version
#> [1] "version"
#>
#> $path
#> [1] "path"
#>
unpackPath("project/asset/version")
#> $project
#> [1] "project"
#>
#> $asset
#> [1] "asset"
#>
#> $version
#> [1] "version"
#>
#> $path
#> NULL
#>