Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: How to move a file from one dir to other?

  1. #1

    Default How to move a file from one dir to other?

    Hi All,

    I have a job that loads xml file from a directory into a DB table. In the job I need to check the new incoming xml file with the old loaded xml file. For that, I need to the move the loaded xml file form current dir to a new dir. So that I can compare the files with ‘File Compare’ option. Is there any option to move a file from one dir to another?
    If so please let me know.

    Thanks,
    Darius

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Not yet without going to scripting. Samatar is working on it.

    Regards,
    Sven

  3. #3
    Join Date
    Jul 2007
    Posts
    6

    Default

    If FTP server is available, wouldn't be possible to use the FTP job ("get files using FTP") to move the files - there is also an option "Remove Files after retrieval" that would clean-up the source directory?

    Just an idea,
    dragos

  4. #4

    Default

    Hi dragos,
    FTP job entry allow to download files from distant host and then delete them.
    I have just commited a "Copy files" job entry in the 3.0 (it will be followed by a commit the 2.5.2).

    This job entry support VFS so you can copy and delete files from FTP.

    Rgds

    Samatar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.