use correct util method
[idea/community.git] / python / educational-core / course-creator / src / com / jetbrains / edu / coursecreator / CCVirtualFileListener.java
index 572db02ec8d1fd60f1ae3dccacf2c1aa5bac0ec9..c34c6260669fe964f174d21c379bd9fc64dd2077 100644 (file)
@@ -58,8 +58,7 @@ public class CCVirtualFileListener extends VirtualFileAdapter {
         || name.contains(EduNames.ANSWERS_POSTFIX)) {
       return;
     }
-
-    VirtualFile taskVF = createdFile.getParent();
+    VirtualFile taskVF = StudyUtils.getTaskDir(createdFile);
     if (taskVF == null) {
       return;
     }