mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 13:35:19 +00:00
added one more convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19095 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e6df26dc3b
commit
ee2ef56a0f
1 file changed
+8
@@ -1254,6 +1254,14 @@ public final class FilePath implements Serializable {
|
||||
void close() throws IOException;
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies the contents of this directory recursively into the specified target directory.
|
||||
* @since 1.312
|
||||
*/
|
||||
public int copyRecursiveTo(FilePath target) throws IOException, InterruptedException {
|
||||
return copyRecursiveTo("**/*",target);
|
||||
}
|
||||
|
||||
public int copyRecursiveTo(String fileMask, FilePath target) throws IOException, InterruptedException {
|
||||
return copyRecursiveTo(fileMask,null,target);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user