MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / setLastModified

Method setLastModified

java/src/org/openqa/selenium/io/Zip.java:128–137  ·  view source on GitHub ↗
(File file, @Nullable FileTime time)

Source from the content-addressed store, hash-verified

126 }
127
128 private static void setLastModified(File file, @Nullable FileTime time) {
129 if (time != null) {
130 boolean ok = file.setLastModified(time.toMillis());
131 if (!ok) {
132 LOG.log(
133 Level.WARNING,
134 () -> String.format("Failed to set last modified %s for file %s", time, file));
135 }
136 }
137 }
138
139 public static void unzipFile(File output, InputStream zipStream, String name) throws IOException {
140 String canonicalDestinationDirPath = output.getCanonicalPath();

Callers 2

unzipMethod · 0.95
testCanZipASingleFileMethod · 0.80

Calls 2

logMethod · 0.65
formatMethod · 0.45

Tested by 1

testCanZipASingleFileMethod · 0.64