# TAR.create with a collection of file paths

**URL:** https://discourse.julialang.org/t/tar-create-with-a-collection-of-file-paths/48626
**Category:** General Usage
**Tags:** question
**Created:** [October 19, 2020, 1:19pm UTC](https://discourse.julialang.org/t/tar-create-with-a-collection-of-file-paths/48626 "2020-10-19T13:19:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)
#### Post date: [October 19, 2020, 1:19pm UTC](https://discourse.julialang.org/t/tar-create-with-a-collection-of-file-paths/48626/1 "2020-10-19T13:19:13Z")

</div>

Is there a simple way to build a tarball from a list of files?

From the [docs](https://github.com/JuliaIO/Tar.jl#tarcreate) it seems like I’ll need to give it the parent directory of all of the files, so potentially `/`, and then a predicate function, so something like `∈([file1, file2, file3])`.

Seems convoluted compared to say `Tar.create([file1, file2, file3])`?
