anudinaorg / xml-dir-listing

Automatically exported from code.google.com/p/xml-dir-listing
Apache License 2.0
0 stars 0 forks source link

-e and -i only work with files, not with directories #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run xml-dir-listing on a cvs tree with the -e "CVS" option to exclude
all the CVS directories in the tree.

What is the expected output? What do you see instead?

I expect an xml directory listing excluding all the "CVS" directories in
the tree, but they are included. 

What version of the product are you using? On what operating system?.

Version 0.2.1

Please provide any additional information below.

I think you just need to change the line:

  if (file.isDirectory() || this.isIncluded(file) && !this.isExcluded(file)
|| isRoot == true) {

To:

  if (file.isDirectory() && this.isIncluded(file) && !this.isExcluded(file)
|| isRoot == true) {

net/matthaynes/xml/dirlist/XmlDirectoryListing.java

Original issue reported on code.google.com by crame...@gmail.com on 23 Mar 2010 at 8:51