Skip to content

Commit

Permalink
No need to call collectFiles on a file
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Oct 15, 2024
1 parent 14cf0bf commit 52fa89e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/jenkins/util/VirtualFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ public Collection<String> call() throws IOException {
private static void collectFiles(VirtualFile d, Collection<String> names, String prefix) throws IOException {
for (VirtualFile child : d.list()) {
names.add(prefix + child.getName());
collectFiles(child, names, prefix + child.getName() + "/");
if (child.isDirectory()) {
collectFiles(child, names, prefix + child.getName() + "/");
}
}
}
}
Expand Down

0 comments on commit 52fa89e

Please sign in to comment.