We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.

Rename File in Directory Dynamically Based On Another File

Comments

2 comments

  • Avatar
    Adrian Williams

    Hi Joshua,

    I'm not entirely sure I understand the scenario but the attached data flow may provide some pointers.

    The Run Dependencies provide a mechanism to sequence the execution of sub-flows within the data flow. 

    You can use some Python code within a Transform node to delete a specified file:

    Once the file has been deleted you can process and write the data to the intermediate file name. 

    Another Transform node can be used to rename a file:

    See the attached .lna file.

     

     

    Attached files

    Rename_File_Tests - 16 Jul 2020.lna

     

    0
    Comment actions Permalink
  • Avatar
    Joshua Campbell

    Adrian,

    I think this is on the right track. I made a slight adjustment to your "Delete File If Exists" Transform Node and I was able to get what I wanted. Thanks so much for your assistance!

    Josh

     

    Attached files

    Screen Shot 2020-07-16 at 11.15.14 AM.png
    Screen Shot 2020-07-16 at 11.15.39 AM.png

     

    0
    Comment actions Permalink

Please sign in to leave a comment.