Compress a file or a directory with files.
compress(format, source, target [, includeBaseFolder] [, mode])
→ returns boolean
bzip
bzip2
tbz
tbz2
tar
tar.bz
tar.gz
gzip
tgz
zip
true
777
Compress the file "example.txt" to a zip-file.
compress("zip", "example.txt", "output.zip")
Compress the "example-directory" to a zip-file.
compress("zip", "example-directory", "output.zip")
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.