Spec-Zone.ru › ColdFusion

extract

Extract the data of a compressed file.

extract(format, source, target) → returns boolean

  • Lucee
  • BL 1.0.0+
  • See Also: compress cfzip

    Argument Reference

    format string
    Required

    The format of the compressed file.
    Values:
    • bzip
    • bzip2
    • tbz
    • tbz2
    • tar
    • tar.bz
    • tar.gz
    • gzip
    • tgz
    • zip

    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

    Extract a zip-file and save the data in the "output-directory".

    extract("zip", "test.zip", "output-directory")

    Extract a multiple zip-files via a 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

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API