# compress/tgz-create
Create a tar.gz archive from a directory tree. Equivalent to gzip-compressing
a tar archive. Returns the compressed bytes.
## Syntax
[compress/tgz-create $dir-path]
## Parameters
- `$dir-path` — Path to the directory to archive
## Examples
[compress/tgz-create "./src"] set bytes [compress/tgz-create "./project"]
## Returns
String of tar.gz bytes, or `%Err{ message "..." }` if tar creation or gzip
compression fails.
## See Also
`compress/tgz-extract`, `compress/tar-create`, `compress/gzip`