IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only

How to read in a folder with PSUtilities.File:listFiles

  • 1.  How to read in a folder with PSUtilities.File:listFiles

    Posted Thu October 12, 2006 09:38 AM

    Hi,

    I’m trying to build a service that can read in a specific folder to get the flow.xml files. I hard coded the path + package name in the mappings. When I run the service the PSUtilities.File:listFiles reads only to the specific map that I have hard coded in the service. Does anyone know how it can you can read in the subdirectorys in Developer.

    Imagine i have a file in the following path:
    c:\test\today\noon\hello.txt
    When i hardcode the following in developer:
    c:\test\today
    I don’t get the hello.txt file. Why does it only look in the same folder.
    The problem here is that i have to search for a lot of files and get info from them, and every time we implement something new we have to change it.

    Or how can I eneter the allowreadpath the functionality that it can also read in the subfolders.

    Many thanks in advance,
    Best Regards,
    Ilhan


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods