mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use path instead of filename
This commit is contained in:
@@ -284,7 +284,7 @@ public class CCUtils {
|
||||
|
||||
if (StudyUtils.isTaskDescriptionFile(name) || StudyUtils.isTestsFile(project, name)) return true;
|
||||
|
||||
if (name.contains(".iml") || (configurator != null && configurator.excludeFromArchive(name))) {
|
||||
if (name.contains(".iml") || (configurator != null && configurator.excludeFromArchive(file.getPath()))) {
|
||||
return false;
|
||||
}
|
||||
final TaskFile taskFile = StudyUtils.getTaskFile(project, file);
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ public class CCVirtualFileListener implements VirtualFileListener {
|
||||
String taskRelativePath = StudyUtils.pathRelativeToTask(createdFile);
|
||||
|
||||
EduPluginConfigurator configurator = EduPluginConfigurator.INSTANCE.forLanguage(course.getLanguageById());
|
||||
if (configurator != null && configurator.excludeFromArchive(createdFile.getName())) {
|
||||
if (configurator != null && configurator.excludeFromArchive(createdFile.getPath())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -70,8 +70,8 @@ public class PyEduPluginConfigurator implements EduPluginConfigurator {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean excludeFromArchive(@NotNull String name) {
|
||||
return name.contains("__pycache__") || name.endsWith(".pyc");
|
||||
public boolean excludeFromArchive(@NotNull String path) {
|
||||
return path.contains("__pycache__") || path.endsWith(".pyc");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user