- John Vanleeuwe
- PowerBuilder
- Thursday, 13 December 2018 12:07 PM UTC
Hi guys,
We have implemented a solution where our app is checking for the existence of txt files in a certain folder. Another application is sending to us TXT files , which we need to process and delete when done.
We used the Dirlist method and this works almost perfect. Problem is our customer wants us to handle the incoming files by date-time stamp and not in the alfabetically order of the filename which is used by the dirlist method.
I've done some searching and found a few suggestions of using an external datawindow , then FindFirst file api and so on to feed the datastore with the filename and timestamp , sort the datastore and then start processing.
This seems to me like so much overhead, wouldn't it be easier if APPEON could extend the Dirlist function with an extra parameter where you can decide the sorting order of the result set ?
TIA
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.