File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jython to read contents of directory or folder

 
R Schroeter
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want Jython to read the contents of a directory or folder, to display what folder or directories are in it, and then to use those names in my program.

------------------------------------------------
I am given the following:

1. Consider this folder structure:

C:/_rob/profile1/plugin-cfg.xml
C:/_rob/profile2/plugin-cfg.xml
C:/_rob/profile3/plugin-cfg.xml

2. I need to read each plugin-cfg.xml.
3. I don't know the NAME of the folders in _rob, NOR do I know how many folders there are in _rob.

I do know that each will have a plugin-cfg.xml.



[ September 18, 2007: Message edited by: Rob schroeter ]

[ September 18, 2007: Message edited by: Rob schroeter ]
[ September 18, 2007: Message edited by: Rob schroeter ]
 
R Schroeter
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not much help out there for jython. Figured this out by a lot of painful trial and error. Hope this helps someone.

 
Roldson Isria
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Print directory to print the directory listing to a file..

Download Free : http://www.print-directory.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic