# compress/tar-create
Create a USTAR tar archive from a directory tree. Returns the archive as bytes.
## Syntax
[compress/tar-create $dir-path]
## Parameters
- `$dir-path` — Path to the directory to archive (relative or absolute)
## Examples
[compress/tar-create "./src"] [compress/tar-create "/home/me/project"]
## Returns
String of tar archive bytes, or `%Err{ message "..." }` on failure. Archive
entry paths are relative to the directory's basename.
## See Also
`compress/tar-extract`, `compress/tgz-create`, `compress/gzip`