This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
URI resolvedUri = resolveToUri(targetUri);
File targetFile = new File(resolvedUri);
File parentFile = targetFile.getParentFile();
if (! parentFile.exists())
FileObject parentFileObject = FileUtil.createFolder(parentFile);
parentFile.mkdirs();
FileObject parentFileObject = FileUtil.toFileObject(parentFile);
if (parentFileObject == null)
return null;
// Extract the extension part to fit the NB API below