Hi all!
How can i list folders of a directory? I want something like listFiles, but for directories?
Must is wrote my own Java-Service todo so?
Thx
Hi all!
How can i list folders of a directory? I want something like listFiles, but for directories?
Must is wrote my own Java-Service todo so?
Thx
Yes you may have to end up with Java Service only list files in a folder/directory with the out of box services as far I am aware of
HTH,
RMG
ok. I start with my Java-Service. Maybe somebody has a nother option for me
For now java service is a good option (as we have developed one as our project common utilities) but you can raise a feature request on SAG brainstorm.
Yes I echo the same with user Mahesh
I remember a service listFiles as part of PSUtilities pkg, better try to get it.
Thanks,
Unfortunately it does not list sub directories under a folder.
pub.utils:executeOSCommand
If there is a equivalent Unix command, you can pass on the Unix command in this service.
It depends how you going to design and purpose, I’m not sure this optional way will be working for you if you not creating Java service,
You can use pub.utils:executeOSCommand. You have to specify the directory and command in fileAccessControl.cnf file. In outputMessage, you will get list of all folders and files. Then you can use tokenize to segregate each item.
Or you can write java service for this.
Hi,
dierctory to be listed should be in fileAccessControl.cnf, but the command being executed needs to be mentioned in OSCommands.cnf.
Remember to reload WmPublic package or restart IS to activate the changes in these files.
Regards,
Holger