learner
30th November 2010, 19:48
Hi,
I have a session on which i am asking for a dir path, my session should be able to looks into this dir and return all the file names for the files present in this user specified dir.
How can i achieve this ??
One option which i thought was to write a simple shell command that can be executed and it can write the output of ls -ltr into a tmp file and then i can read the contents of tmp file, but i am trying to identify a better solution like directly through some baan function if i can get the list of files sitting in dir.
Is there a standard function to do this ? I went through dir related functions but looks like there is no such direct function .
-Learner
I have a session on which i am asking for a dir path, my session should be able to looks into this dir and return all the file names for the files present in this user specified dir.
How can i achieve this ??
One option which i thought was to write a simple shell command that can be executed and it can write the output of ls -ltr into a tmp file and then i can read the contents of tmp file, but i am trying to identify a better solution like directly through some baan function if i can get the list of files sitting in dir.
Is there a standard function to do this ? I went through dir related functions but looks like there is no such direct function .
-Learner