Convert object of type `path_chain` to list

# S3 method for path_chain
as.list(x, ..., root.name = "root.dir")

Arguments

x

a path_chain object

...

elipsis for API consistency, does nothing

root.name

key for root directory; default: 'root.dir'

Examples

tmp <- create_temp_dir("files") create_sample_dir(tmp)
#> Warning: katalog '/tmp/Rtmp4l1UVj/files' już istnieje
#> [1] TRUE
path.chain <- path_chain(tmp) as.list(path.chain)
#> $root.dir #> [1] "files/" #> #> $data #> $data$root.dir #> [1] "data/" #> #> $data$example1.RData #> [1] "example1.RData" #> #> $data$example2.RData #> [1] "example2.RData" #> #> $data$persons.csv #> [1] "persons.csv" #> #> #> $docs #> $docs$root.dir #> [1] "docs/" #> #> $docs$schema.txt #> [1] "schema.txt" #> #>