Skip to content

Commit eb18428

Browse files
Skip modified time as well
1 parent ea74b28 commit eb18428

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/java/hudson/FilePath.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,11 @@ private static void unzip(File dir, File zipFile) throws IOException {
721721
} catch (InterruptedException | NoSuchFileException ex) {
722722
LOGGER.log(Level.WARNING, "unable to set permissions", ex);
723723
}
724-
Files.setLastModifiedTime(Util.fileToPath(f), e.getLastModifiedTime());
724+
try {
725+
Files.setLastModifiedTime(Util.fileToPath(f), e.getLastModifiedTime());
726+
} catch (NoSuchFileException ex) {
727+
LOGGER.log(Level.WARNING, "unable to set last modified time", ex);
728+
}
725729
}
726730
}
727731
}

0 commit comments

Comments
 (0)