mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
compute relative path to src dir, not to actual task dir
This commit is contained in:
@@ -823,6 +823,10 @@ public class StudyUtils {
|
||||
public static String pathRelativeToTask(VirtualFile file) {
|
||||
VirtualFile taskDir = getTaskDir(file);
|
||||
if (taskDir == null) return file.getName();
|
||||
VirtualFile srcDir = taskDir.findChild(EduNames.SRC);
|
||||
if (srcDir != null) {
|
||||
taskDir = srcDir;
|
||||
}
|
||||
return FileUtil.getRelativePath(taskDir.getPath(), file.getPath(), '/');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user