Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to check how many files are there in a folder?

  1. #1
    Join Date
    Sep 2005
    Posts
    1,403

    Default How to check how many files are there in a folder?

    Hi,


    Here i have a senario

    <ul>[*] there is a folder(source) in that I have two files "file1" and "file2"
    [/list]
    <ul>[*] my requirment is
    [/list]


    If total files in folder(source) = 2



    then True(job sucess)



    Else False(job should be aborted)



    Please let me know how to do this in Kettle?



    How to check how many files are there in a folder?



    thanks,



    srinivas

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default RE: How to check how many files are there in a folder?

    1) "Get File Names" step
    2) Send rows to result
    3) Evaluation: rows.size() > 5 (or any other number of files)


    HTH,
    Matt

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.