mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
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:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user