extract
Extract the data of a compressed file.
extract(format, source, target) → returns boolean
Argument Reference
format string Required
The format of the compressed file.
Values:
bzipbzip2tbztbz2tartar.bztar.gzgziptgzzip
source string Required
Path (relative or absolute) to the source-file or a directory with zip-files.
target string Required
Path (relative or absolute) to the directory, where you want to extract the data.
Examples Sample code invoking the extract function
Extract a zip-file and save the data in the "output-directory".
extract("zip", "test.zip", "output-directory") Extract all zip-files, which are stored in the "multiple-directory" and save the data in the "output-directory".
extract("zip", "multiple-directory", "output-directory")
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/extract