in amazon-inspector-image-scanner/amazon-inspector-image-scanner-agent/src/main/java/com/amazon/inspector/teamcity/AbstractBuildProcessAdapter.java [106:117]
protected Path CreateDirectoryForReporting(String folderName) throws IOException {
// initialize reporting root path
final String reportingRootCanonicalPath = reportingRoot.getCanonicalPath();
progressLogger.message(String.format("The reporting root path is [%1$s].", reportingRootCanonicalPath));
final Path reportingRootPath = Paths.get(reportingRootCanonicalPath, folderName);
Path directory = Files.createDirectory(reportingRootPath);
progressLogger.message(String.format("Create directory for reporting [%1$s].", reportingRootPath));
// register artifacts
artifactsWatcher.addNewArtifactsPath(reportingRootPath.toString());
return directory;
}