Compress a file or a directory with files.
compress(format, source, target [, includeBaseFolder] [, mode])
→ returns boolean
bzipbzip2tbztbz2tartar.bztar.gzgziptgzziptrue777Compress 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.