Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get filesfrom application server

sun_light
Explorer
0 Likes
1,544

Hi i need sample code with this requirement:

Get all the filenames from particular directory of application server which starts with 'abc' and then pass it to internal table,

Then based on the field from files, i want to find the type of that file like pdf, doc, xslx, etc

Finally show the count of each types of files.

Thanks in advance...

1 ACCEPTED SOLUTION
Read only

OlegBash
Active Participant
0 Likes
1,463

Please try function

EPS_GET_DIRECTORY_LISTING

Nice little exercise, would be a pity if someone were to solve it 😉

4 REPLIES 4
Read only

abo
Active Contributor
1,463

Nice little exercise, would be a pity if someone were to solve it 😉

Read only

OlegBash
Active Participant
0 Likes
1,464

Please try function

EPS_GET_DIRECTORY_LISTING

Read only

0 Likes
1,463

Hi thanks, I used it, how to use file mask as I want to retrive only the files starts with 'inv'

Read only

OlegBash
Active Participant
0 Likes
1,463

The function has parameters:

DIR_NAME <- full path to directory

FILE_MASK <- you can use for file filtering by mask with star-sign e.g. begin_of_file*