IPath path = Platform.getStateLocation(bundle);
Path p = Paths.get(path.toOSString());
directory = p.resolve(HTML_FOLDER);
- if (!Files.exists(directory))
- Files.createDirectories(directory);
+ Files.createDirectories(directory);
// Ensure that style.css is inside the html directory
Path css = directory.resolve("style.css");