Hub
Pricing About
ComponentComponent

Replace Path Variable

takbb profile image
Draft Latest edits on 
Sep 30, 2022 7:32 PM
Drag & drop
Like
Use or download
Creates a new path variable from a string and replaces a path variable of the same name (comprising name and suffix) This component was written to provide a means of overwriting an existing Path flow variable, so that a single flow variable might be reusable for different file outputs. It does not appear that within a regular flow it is possible to "update" a path variable once it exists. You can also use this component to create a totally new path variable without having to perform the usual trick of String Manipulation (Variable) followed by String to Path (Variable), which in fact is what this component will be doing on your behalf. The path variable name is divided into two parts (name and suffix). so to create a path variable called filename_path, supply a name of "filename" and a suffix of "_path". This appears a little odd but is simply because of the way th String to Path (variable) node works. It requires a suffix to be applied to a name, so it was easier to simply replicate this behaviour here. @takbb 30/09/2022

Component details

Input ports
  1. Type: Flow Variable
    Input data flow
Output ports
  1. Type: Flow Variable
    Output data flow with newly created (or replaced) Path variable

Used extensions & nodes

Created with KNIME Analytics Platform version 4.6.2
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.2

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits