Fix "includeDirectories/ includeFiles" parameter not working (APAC PoC)
git-svn-id: https://brutex.net/svn/xservices/trunk@156 e7e49efb-446e-492e-b9ec-fcafc1997a86xservices-jre6
parent
ff9edbd2e2
commit
e62784a0d5
|
@ -38,7 +38,7 @@ import net.brutex.xservices.ws.XServicesFault;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Path("/FileService/")
|
@Path("/FileService/")
|
||||||
@Produces({ "application/xml" })
|
@Produces({ "text/xml" })
|
||||||
public abstract interface FileInfo {
|
public abstract interface FileInfo {
|
||||||
|
|
||||||
public final static String BASE_PATH = "/FileService/";
|
public final static String BASE_PATH = "/FileService/";
|
||||||
|
|
|
@ -139,6 +139,12 @@ public class FileInfoImpl implements FileInfo {
|
||||||
logger.info("FileWalker returned '"+finder.getCount()+"' hits. '" + finder.getTotal() + "' files have been scanned.");
|
logger.info("FileWalker returned '"+finder.getCount()+"' hits. '" + finder.getTotal() + "' files have been scanned.");
|
||||||
List<Path> result = finder.getResult();
|
List<Path> result = finder.getResult();
|
||||||
for(Path f : result) {
|
for(Path f : result) {
|
||||||
|
if(! withDirectories) {
|
||||||
|
if(f.toFile().isDirectory()) continue;
|
||||||
|
}
|
||||||
|
if(! withFiles) {
|
||||||
|
if(f.toFile().isFile()) continue;
|
||||||
|
}
|
||||||
list.add(new FileInfoType(f, baseuri));
|
list.add(new FileInfoType(f, baseuri));
|
||||||
}
|
}
|
||||||
} catch (IOException e2) {
|
} catch (IOException e2) {
|
||||||
|
|
Loading…
Reference in New Issue