mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-22 00:05:31 +00:00
create a directory if it doesn't exist.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23464 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
10c56deb02
commit
d06333d8d3
1 file changed
+3
-1
@@ -553,6 +553,8 @@ public final class FilePath implements Serializable {
|
||||
if(timestamp.exists() && sourceTimestamp ==timestamp.lastModified())
|
||||
return false; // already up to date
|
||||
this.deleteContents();
|
||||
} else {
|
||||
this.mkdirs();
|
||||
}
|
||||
|
||||
if(listener!=null)
|
||||
@@ -563,7 +565,7 @@ public final class FilePath implements Serializable {
|
||||
CountingInputStream cis = new CountingInputStream(in);
|
||||
try {
|
||||
if(archive.toExternalForm().endsWith(".zip"))
|
||||
unzipFrom(cis);
|
||||
unzipFrom(cis);
|
||||
else
|
||||
untarFrom(cis,GZIP);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user