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:
kohsuke committed 2009-11-04 17:57:34 +00:00
1 parent 10c56deb02
commit d06333d8d3
1 file changed
+3 -1
+3 -1
View File
@@ -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) {