IDEA-134502 Custom file templates are gone

This commit is contained in:
Dmitry Avdeev
2014-12-19 18:46:54 +03:00
parent b98ff33e0c
commit fe589831db
@@ -358,12 +358,12 @@ class FTManager {
public File getConfigRoot(boolean create) {
final File templatesPath = myTemplatesDir.isEmpty() ? new File(myScheme.getTemplatesDir()) : new File(myScheme.getTemplatesDir(), myTemplatesDir);
//if (create) {
// final boolean created = templatesPath.mkdirs();
// if (!created && !templatesPath.exists()) {
// LOG.info("Cannot create directory: " + templatesPath.getAbsolutePath());
// }
//}
if (create) {
final boolean created = templatesPath.mkdirs();
if (!created && !templatesPath.exists()) {
LOG.info("Cannot create directory: " + templatesPath.getAbsolutePath());
}
}
return templatesPath;
}