mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
[FIXED HUDSON-3227] Do not archive empty directories.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16026 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c045600a72
commit
b1fe504b7d
2 files changed
+31
No files matched your search
@@ -942,6 +942,7 @@ public final class FilePath implements Serializable {
|
||||
CopyImpl copyTask = new CopyImpl();
|
||||
copyTask.setTodir(new File(target.remote));
|
||||
copyTask.addFileset(Util.createFileSet(base,fileMask,excludes));
|
||||
copyTask.setIncludeEmptyDirs(false);
|
||||
|
||||
copyTask.execute();
|
||||
return copyTask.getNumCopied();
|
||||
|
||||
Reference in new issue
Block a user