use correct util method
authorLiana.Bakradze <liana.bakradze@jetbrains.com>
Wed, 12 Oct 2016 12:38:22 +0000 (15:38 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Thu, 17 Nov 2016 14:08:29 +0000 (17:08 +0300)
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;
     }