Skip to content

Commit

Permalink
Mistake caught by DirectoryBrowserSupportTest.zipDownload.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 21, 2018
1 parent 9735a34 commit a9430d3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -366,7 +366,7 @@ private static String createBackRef(int times) {
private static void zip(OutputStream outputStream, VirtualFile dir, String glob) throws IOException {
try (ZipOutputStream zos = new ZipOutputStream(outputStream)) {
zos.setEncoding(System.getProperty("file.encoding")); // TODO JENKINS-20663 make this overridable via query parameter
for (String n : dir.list(glob, null, /* TODO what is the user expectation? */true)) {
for (String n : dir.list(glob.isEmpty() ? "**" : glob, null, /* TODO what is the user expectation? */true)) {
String relativePath;
if (glob.length() == 0) {
// JENKINS-19947: traditional behavior is to prepend the directory name
Expand Down

0 comments on commit a9430d3

Please sign in to comment.