Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public void putDirectory(String relativePath) throws IOException {
@Override
public void putFile(String relativePath, FileTime lastModified, byte[] content) throws IOException {
var targetPath = path.resolve(relativePath);

if (targetPath.getParent() != null && !Files.isDirectory(targetPath.getParent()))
Files.createDirectories(targetPath.getParent());

Files.write(targetPath, content);
Files.setLastModifiedTime(targetPath, lastModified);
}
Expand Down
Loading