if it's not a pattern, jump to the directory/file.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4247 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-13 01:17:33 +00:00
1 parent f03d82bacf
commit bd1a58863a
1 file changed
+6
@@ -169,6 +169,12 @@ public final class DirectoryBrowserSupport {
// current workspace directory
FilePath curDir = new FilePath(root, path);
if(new FilePath(curDir,pattern).exists()) {
// this file/directory exists, so it's not a pattern
rsp.sendRedirect2(pattern);
return;
}
FilePath[] matches = curDir.list(pattern);
List<List<Path>> files = null;