{"title":"Compress Files/Folder (Table)","nodeType":"Other","id":"*xELITwzuVxr5Y5D4","factoryName":"org.knime.filehandling.utility.nodes.compress.table.CompressTableNodeFactory","factoryId":"org.knime.filehandling.utility.nodes.compress.table.CompressTableNodeFactory","path":["IO","File Folder Utility","Archive (zip, tar, ...)"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>This node compresses files or a folder to an archive. If the compression format is being changed the file extension of the archive to create is adapted automatically.\n <br />\n <br />\n Supported archive formats are:</p><ul><li>.zip</li><li>.jar</li><li>.tar</li><li>.tar.gz</li><li>.tar.bz2</li><li>.cpio</li></ul>\n                 \n            \n             \n            <p><b>Note:</b> This node cannot compress KNIME artifacts such as workflows. In order to compress workflows please use a combination of <a href=\"https://hub.knime.com/knime/extensions/org.knime.features.buildworkflows/latest/org.knime.buildworkflows.reader.WorkflowReaderNodeFactory\" rel=\"ugc nofollow noopener noreferrer\"> <i>Workflow Reader</i> </a> and <a href=\"https://kni.me/n/ouYgT_6spFNuvnv_\" rel=\"ugc nofollow noopener noreferrer\"> <i>Workflow Writer</i> </a> instead.</p>\n             \n            <p><i>This node can access a variety of different</i> <a href=\"https://docs.knime.com/2021-06/analytics_platform_file_handling_guide/index.html#analytics-platform-file-systems\" rel=\"ugc nofollow noopener noreferrer\"> <i>file systems.</i> </a> <i>More information about file handling in KNIME can be found in the official</i> <a href=\"https://docs.knime.com/latest/analytics_platform_file_handling_guide/index.html\" rel=\"ugc nofollow noopener noreferrer\"> <i>File Handling Guide.</i> </a></p>\n            \n        \n        ","shortDescription":"Compresses a file, a folder or files in folder to an archive.","keywords":[],"deprecated":false,"streamable":false,"tags":["IO","File Folder Utility","Archive (zip, tar, ...)"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3BpVFh0WE1MOmNvbS5hZG9iZ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zRUMzQkRFMzNFNTk1RiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqLjjB8AAADCSURBVHjaYvz//z8DKYCRkRGmgRGkl4VEzRh8RmJdgKQZ7gK4M3qmrcYwpSQrlBHNRqw2MXZPXYXTCSBDcPgfIYTPAGygNDuMASMQk5OC4AqEOBHh+u77HxTNc+etYwBqQnEVE7oNMrJyDDy8vES7CCMaL926B3cJzDXoLsFrALIXyHIBHz8/w79//xi+fP6M12acBjx48ZYyL9iZGzH8+vWbfC9cuXQJZzRiAxjRCNIE04jsDbwuACUQfACfPECAAQB5Uk/mC1afNgAAAABJRU5ErkJggg==","views":[],"inPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Input table","description":"The input table containing a Path column."}],"outPorts":[],"dynInPorts":[{"groupName":"Source File System Connection","groupDescription":"The source file system connection.","types":[{"objectClass":"org.knime.filehandling.core.port.FileSystemPortObject","color":"178ba5","dataType":"File System"}]},{"groupName":"Destination File System Connection","groupDescription":"The destination file system connection.","types":[{"objectClass":"org.knime.filehandling.core.port.FileSystemPortObject","color":"178ba5","dataType":"File System"}]}],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Source column","description":"The column containing the paths to the files/folders that must be compressed.","optional":false},{"name":"File","description":"Path where the created archive should be saved.","optional":false},{"name":"Create missing folders","description":"If enabled, missing folders in the specified path will be created automatically.","optional":false},{"name":"If exists","description":"Specify the behavior of the node in case the output file already exists.\n<ul><li><b>Fail</b> : Will issue an error during the node&#39;s execution (to prevent unintentional overwrite).</li><li><b>Overwrite</b> : Will replace any existing file.</li></ul>","optional":false},{"name":"Archive entry path","description":"This mode determines what the folder structure looks like when you de-compress the archive.\n<ul><li><b>Include only the selected file/folder</b> : When de-compressing, only the selected source file/folder and its content will be created.</li><li><b>Include all folders in the source path</b> : When de-compressing, the selected source file/folder, its content, and all parent folders will be created. Those additional folders don&#39;t contain any other files/folders other than those to be compressed.</li><li><b>Include all folders in the source path succeeding the prefix</b> : Behaves like <i>Include all folders in the source path</i> , except that the specified folder prefix (the beginning of the path) is stripped and those folders will not be created when de-compressing. <b>Note:</b> This mode might produce invalid archive entries that cannot be de-compressed; the node will fail in that case.</li><li><b>From table column</b> : The archive entry name is taken from the selected table column. When de-compressing, the created folder structure will match the paths in that column. <b>Note:</b> This mode might produce invalid archive entry names; the node will fail in that case.</li></ul>","optional":false},{"name":"Folder prefix","description":"The path prefix to strip from the beginning of each source path. Folders matching this prefix will not be created when de-compressing the archive.","optional":false},{"name":"Entry name column","description":"The column containing the archive entry names. Both path columns and string columns are accepted. When de-compressing, the created folder structure will match the entries in this column.","optional":false},{"name":"Compression","description":"The compression/archive format to use for the output file. Supported formats: zip, jar, tar, tar.gz, tar.bz2, cpio. If the compression format is changed, the file extension of the archive is adapted automatically.\n<ul><li><b>zip</b> : ZIP compression format</li><li><b>jar</b> : JAR compression format</li><li><b>tar</b> : TAR compression format (uncompressed)</li><li><b>tar.gz</b> : TAR with GZIP compression</li><li><b>tar.bz2</b> : TAR with BZIP2 compression</li><li><b>cpio</b> : CPIO compression format</li></ul>","optional":false},{"name":"Include empty folders","description":"If enabled, empty folders found within the source path will be included in the archive.","optional":false}]}],"links":[],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202605041104","bundleName":"KNIME Filehandling Nodes","bundleSymbolicName":"org.knime.filehandling.utility.nodes","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.base","featureName":"KNIME Base nodes","featureVersion":"5.12.0.v202606261225","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*bjR3r1yWOznPIEXS"},"frequentSuccessors":[]}
